Identifiers are names you give to variables, functions, classes, modules, etc., essentially, names assigned for various components within Python so must adhere to standard nomenclature of language where certain characters reserved and thereby avoided
myVariable
differs from myvariable
). Consistent usage simplifies troubleshooting and keeps behaviour as expected once meaning and use settled so prefer whichever better matches surrounding environment whether all lowercase or some mix like camel casefor
, while
, if
, else
, def
, class
, True
, False
, etc.) cannot be identifiers