python naming convention for constants code example

Example 1: python naming conventions

#module names should be all lowercase
import mymodule
#normal variables are lowercase_with_underscores
my_variable = 'value'
#constants are UPPERCASE
CONSTANT = 'never changes'
#classes are UpperCaseCamelCase
class MyClass(self):
    pass

Example 2: camelcase naming convention python

# CamelCase is the way you are meant to name classes:
class ExampleClass(self):
  pass
# Start each word with a capital
# Don't seperate words with underscores