2.2.1.2 Variable Naming Rules in Python
Python Programming
Variable names in Python must adhere to the following rules:
- The name must begin with a letter (a-z, A-Z) or an underscore ( _ ).
- Subsequent characters can include letters, digits (0-9), or underscores ( _ ).
- Variable names are case-sensitive, meaning age and Age are considered two different variables.
- Python's reserved keywords, such as for, while, if, etc., cannot be used as variable names.