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?

A method is a function that belongs to a class.


how to make a class

classes are made with

class NameOfClass(ParentClass):

    attribute = SOMETHING

    def method():
        the body of the method
        ...

the chapters


what is next?

classes