python naming examples
Example 1: python naming conventions
import mymodule
my_variable = 'value'
CONSTANT = 'never changes'
class MyClass(self):
pass
Example 2: camelcase naming convention python
class ExampleClass(self):
pass
Example 3: python naming script
def get_name():
print("Hello what is your name?")
name = input("My name is: ")
print("Hello ", name)
return name
Example 4: class name convention python
class MyClass:
def __init__(self):
self.load_time = 25
def print_value(self, value):
print(value)