Python Variable Names
- A variable name must start with a letter or the underscore character.
- A variable name cannot start with a number.
- A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
- Variable names are case-sensitive (age, Age and AGE are three different variables)
What are variable naming conventions?
The rules and conventions for naming your variables can be summarized as follows: Variable names are case-sensitive. ... The convention, however, is to always begin your variable names with a letter, not " $ " or " _ ". Additionally, the dollar sign character, by convention, is never used at all.
What are variable naming conventions in Python Class 11?
The variable name cannot start with a number. It can only start with a character or an underscore. Variables in python are case sensitive. They can only contain alpha-numeric characters and underscores.