What is the naming convention in Python for variable and function names?
See Python PEP 8: Function and Variable Names:
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.
The Google Python Style Guide has the following convention:
A similar naming scheme should be applied to a
David Goodger (in "Code Like a Pythonista" here) describes the PEP 8 recommendations as follows:
joined_lowerfor functions, methods,attributes, variables
camelCaseonly to conform topre-existing conventions