The variables for Python are described in this way:
A variable is a value stored in memory, and by the name of the variable, we can access the value of the variable.
In these lines of code, Price,count and sum are variables, Python is a dynamic type language, and variables are not required to be declared, so long as they are assigned before the variable is used, the variable is created only if it is assigned a value. For assignments, we'll go over the details later in this post.
Python has 6 standard variable data types:
- Numbers (digital)
- String (String)
- List (lists)
- Tuple (tuple)
- Set (SET)
- Dictionary (dictionary)
We only do a simple understanding here, the specific content will be introduced once again ~
Look at the code, experience it:
More content learning in the code bud Net
Http://www.mayacoder.com/lesson/index
Python Novice Learning basic data type--variable