Python Variables are the memory locations in which we can store value.
is variable and 10
Variable names are used to have some descriptive names, So that developers can understand more clearly.
There are some rules for variable names:
- The variable name consist of alphabets, numbers and underscore only.
- The first character in variable name can't be a number.
- a-b-c, variable!, 1variable, #variable, all are invalid variables.
- a_b_c, variable, variable1, _variable_ , all are valid variables.
Let's have some program on variables in python IDE,
After writing this press enter key
After writing x, press enter it will execute the value stored in that variable.
Some more programs in IDE,
Let's do with words,