module naming convention python 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: python code style

This python pep sums it up: https://www.python.org/dev/peps/pep-0008/

Example 3: pep8

# pep8 Style Guide for Lists
my_list = [
    1, 2, 3,
    4, 5, 6,
    ]
result = some_function_that_takes_arguments(
    'a', 'b', 'c',
    'd', 'e', 'f',
    )