python naming convention for functions and variables
Python[Edit]
+
0
-
0
python naming convention for functions and variables
1 2 3 4 5 6 7# Function names - lowercase, with words separated by underscores as necessary to improve readability. # e.g. def my_function(): # # Variable names - the same convention as function names. # e.g. my_variable = 1 # # mixedCase - allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.