camel case or snake case python code example
Example 1: 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
Example 2: camel case in python
>>> "they're bill's friends from the UK".title()
"They'Re Bill'S Friends From The Uk"
Example 3: pep8
# pep8 Style Guide for Lists (easier to see indentation imo)
my_list = [
1, 2, 3,
4, 5, 6,
]
result = some_function_that_takes_arguments(
'a', 'b', 'c',
'd', 'e', 'f',
)