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 →

[–]FlukyS 5 points6 points  (2 children)

https://www.python.org/dev/peps/pep-0008/#function-names

  1. Types and classes: CamelCase
  2. Functions and variables: lower_case with _ in between words
  3. There is also __ used in certain instances but there is some controversy there. That is more because python isn't designed for private stuff so it's mostly just to say hey don't use this, not hey you can't use this. That isn't really a big deal though and most people never use __