Identifiers are the names used to identify variables.
rules of identifiers
-
You can start with English letters
A-Zora-z -
You cannot start variables with digits
0-9 -
You can use
_(underscore), and you can also start a variable name with_
example
file: 7_identifiers.py
_name = "xnocode"
_age = 25
_PI = 3.1416
print(_name, _age, _PI)output
xnocode 25 3.1416Here → _name, _age, _PI ← identifiers
Note
Good programmers use meaningful variable names so the code is easy to understand.