what is a class?
I think of classes as attributes (variables) and methods (functions) that belong together.
Everything in Python is an object, which is another word for a class, it means that everything in Python has a class definition somewhere. Knowing how classes work and how to make them shows how everything in Python works or at least that they are attributes (variables) and methods (functions) that belong together.
what is a class attribute?
A class attribute is a variable that belongs to a class.
what is a method?
how to make a class
classes are made with
the class keyword
a name in CapWords format (use a name that tells what the group of attributes and methods does - naming things is its own challenge)
parentheses and the parent class (optional) with a colon at the end
class NameOfClass(ParentClass):
attribute = SOMETHING
def method():
the body of the method
...