Saturday, November 16, 2019

Python Identifiers

Python Identifiers


- Identifier is the name given to entities like classes, functions, variables, etc. in Python. It helps differentiating one entity from another.
- Rules for writing identifiers.
- Identifiers can be a combination of later in lowercase ( a to z ) or uppercase (A to Z) or underscore(_).
- Names like myClass, var_1 & print_this_to_screen; all are valid example.
- An identifier cannot start with a digit, 1 variable is invalid but variable is valid.
- Keywords cannot be used as identifiers.

No comments:

Post a Comment