class names python code example

Example 1: python class name

instance.__class__.__name__

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

Example 3: python code style

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

Example 4: class name convention python

# PEP 8 Class names
# Class names should normally use the CapWords convention.

class MyClass:
  def __init__(self):
    # Variable and method names are snake_case
    self.load_time = 25
  def print_value(self, value):
    print(value)