Identifiers are the names used to identify variables.

rules of identifiers

  1. You can start with English letters A-Z or a-z

  2. You cannot start variables with digits 0-9

  3. 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.1416

Here → _name, _age, _PI ← identifiers

Note

Good programmers use meaningful variable names so the code is easy to understand.

<< Python Indentation | Python Case-Sensitive >>