Identifier Naming Convention
Learn about the naming convention in Python.
We have created identifiers for many things—normal variables, functions, classes, instance data, instance methods, class data, and class methods.
It’s a good idea to adhere to the following conventions when creating identifiers.
Variables and functions not belonging to a class
All variables and functions not belonging to a class start with a lowercase alphabet.
For example: real
, imag
, name
, age
, ...