Python identifiers

All the variables, class, object, functions, lists, dictionaries etc. in Python are together termed as Python Identifiers. Identifiers are the basis of any Python program. Almost every Python Code uses some or other identifiers.

Rules for using Python Identifiers:

  • An identifier name should not be a keyword.
  • An identifier name can begin with a letter or an underscore only.
  • An identifier name can contain both numbers and letters along with underscores (A-z, 0-9, and _ ).
  • An identifier name in Python is case-sensitive i.e, sum and Sum are two different identifier.

Example : Printing “HELLO WORLD” in python using Interactive Mode and using a Variable.