- Hands-On Penetration Testing with Python
- Furqan Khan
- 87字
- 2021-07-02 14:13:47
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.