Identifiers in Python
An identifier is a name given to entities like class, functions, variables, etc. It helps to differentiate one entity from another
Rules for Identifiers in Python
- Alphabet Symbols (Either Upper case OR Lower case)
- If Identifier is start with Underscore (_) then it indicates it is private.
- Identifier should not start with Digits.
- Identifiers are case sensitive.
- We cannot use reserved words as identifiers Eg: def=10
- There is no length limit for Python identifiers. But not recommended to use too lengthy identifiers.
- Dollar ($) Symbol is not allowed in Python.