What is the Identifier in Python

Identifier:

  1. Alphabet Symbols. [Either upper case or Lower case]
  2. If identifier is start with Underscore (_) then it indicates it is private.
  3. Identifier should not start with Digits.
  4. Identifiers are Case Sensitive.
  5. We cannot use Reserve Words as identifier.
  6. There is no length  limit for python identifiers. But not recommended  to use too lengthy identifiers.
  7. Dollor ($) symbol is not allowed in Python.

Note:

  1. If identifier is start with Underscore (_) then it indicates it is private.
  2. If identifier is start with Two Underscore (__)  indicating that it is strongly private identifier.
  3. If identifier is starts and Ends with  Two Underscore  symbols then the identifier is language defined special name, which is also known as Magic Methods.