Variable
a variable is a name of the memory location. it is used to store data. its value can be changed, and it can be reused many times
- the value stored in a variable can be changed during program execution
- all the operations done on the variable effects that memory location
a variable is created the moment you first assign a value to it
Example:
x=10
y=20
print(x)
print(y)
- A variable name must start with a letter or the underscore character
- A variable name cannot start with a number
- A variable name name only contain alpha-numeric characters and underscore ( A-Z, a-z, 0-9 and _ )
- Variable names are case-sensitive
- The reserved keywords cannot be used as variable
hhuh
0 Comments