Python Identifiers
Categories: Python
A Pythonidentifier is a name used to identify a variable, function, class,module or other object. An identifier starts with a letter A to Z ora to z or an underscore (_) followed by zero or more letters,underscores and digits (0 to 9).
Python does notallow punctuation characters such as @, $, and % within identifiers.
Python is a casesensitive programming language. Thus, Manpower and manpower are twodifferent identifiers in Python.
Here are namingconventions for Python identifiers −
Class names startwith an uppercase letter. All other identifiers start with alowercase letter.
Starting anidentifier with a single leading underscore indicates that theidentifier is private. Starting an identifier with two leadingunderscores indicates a strongly private identifier. If theidentifier also ends with two trailing underscores, the identifier isa language-defined special name.