variables in python
why variables don't have data type?
they are automatically assigned, it's just how python is made, simple elegant and only requires minimum amount of code, rest Python does for you :)
they do kinda you just don't have to pre define the data type for the variable
The variables data type are determined by their value assigned. This way a variable is flexible in its use, such as where an integer may be useful here then a float may be useful there.
It can't show the variable i've made
Once an object is assigned to a variable, you can refer to the object by that name. Ex:x=4 here,x is the variable name that assigned to 4.we can refer variable to get the value assigned to it.
My fist comment
Every variable in Python is considered as an object. Variables in Python follow the standard nomenclature of an alphanumeric name beginning in a letter or underscore. Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the reserved memory. You do not need to declare variables before using them, or declare their type. Variable names are case sensitive . Most variables in Python are local in scope to their own function or class. Global variables , however, can be declared with the global keyword.
Python is best I't dont like any language
Becasuse we asaign a value to a variable and we decide what type of value we give to it
Nasıl yok var
Only when you declare the values, the variables can be classified
Python is a dynamic language
Depends on the values assigned to the variables
Bcuz they change their data types according to the output value
Python are lots of built in libraries and packages
They have a data type dependent on what you initialize them to be
Python is a programming language. 💯
Because Python automatically understands the data type when you assign a value to it and there's no need to determine whether the data type is integer or float or string. For example: A = 7 #No need to write int A B = 7.5 #No need to write float B C = "Hi" #No need to write string C
Variables generally have a data type when they are a assigned to a certain value. The data type of variable can be found by the type of value assigning to it. eg:-We calls different variables as numeric variables as they are assigned to numeric value.(n=5.1 , n is a numeric variable as the float value is assigned to it).
help my code does not iterate