Variables are used for store data.
First we assign value for variable.
E.g. Number1 = 121
Here variable is Number1
Stored / assigned value is 121
Number2 = 223
Here variable is Number2
Stored / assigned value is 223
We can store Strings , Numbers in variables. Value of variable can be change. Therefore python is called Dynamic language.
We can use any variable and any value.
Numbers
Strings
Rules and Conventions for Variables
-----------------------------------------------
Rules
1) Variable does't start with number
2) Variable does't start with symbols
3) Variable can start with underscore_
Conventions (For more words)
1) Snake case writing (Using under score)
user_one_name
2) Camel case writing (Using capital latter)
UserOneName
First we assign value for variable.
E.g. Number1 = 121
Here variable is Number1
Stored / assigned value is 121
Number2 = 223
Here variable is Number2
Stored / assigned value is 223
We can store Strings , Numbers in variables. Value of variable can be change. Therefore python is called Dynamic language.
We can use any variable and any value.
Numbers
Strings
Rules and Conventions for Variables
-----------------------------------------------
Rules
1) Variable does't start with number
2) Variable does't start with symbols
3) Variable can start with underscore_
Conventions (For more words)
1) Snake case writing (Using under score)
user_one_name
2) Camel case writing (Using capital latter)
UserOneName