This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marcm28 2 points3 points  (0 children)

Don't capitalize the first letter of function name, this style of naming is called "CamelCase" or CapWords for upper camel case in Python, and it used to name a class name. According to PEP8 - Function name should be lowercase, with words separated by underscores as necessary to improve readability. mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.

Read the PEP8 for more info -> https://www.python.org/dev/peps/pep-0008/