Variables are identifiers of physical memory location, which is used to hold values temporarily during program execution.
Python interpreter allocates memory based on the values data type of variable, different data types like integers, decimals, characters etc can be store in these variables.
Values
Before learning about variables, you must know about values.
A value is one of the basic parts of a program like a letter or a number.
The examples of such values can be:
Value | Data Type |
---|---|
5, 9 | integers |
Hello, Ok | string (combination of letters) |
0 Comments
If you have any doubts,please let me know