VARIABLE NAME
Python as a popular programming language has a naming style. There are some condition that govern variable declaration in python. These are;
A variable name capitalised is a constant e.g PI, PMT, TIME etc.
A variable name should not contain a special character e.g !@£$%^&*()-=
A variable name should not have space in between e.g my name, my age
- A variable name should not be a keyword in python. e.g
- A variable should not start with a number but can start with an underscore(_)
ASSIGNMENT Assignment operator are used for variable declaration. Python uses equal to (=) for variable declaration.
VARIABLE TYPE The data types in python ranges from
- String
- Numbers
- Boolean
- Complex numbers