
上QQ阅读APP看书,第一时间看更新
Variable naming conventions
Having understood the basics of how variables can be declared and used, let's try to understand the naming conventions they follow. A variable, also known as an identifier, can be named by anything that starts with any letter between A-Z, a-z, or an underscore. This can then be followed by any number of digits or alphanumeric characters.
It must be noted that certain special characters, such as %, @, #, -, and !, are reserved in Python and can't be used with variables.