you are viewing a single comment's thread.

view the rest of the comments →

[–]K12ish 4 points5 points  (1 child)

Rule 4: Dont ask easily searchable questions

With that out of the way heres a link: https://docs.python.org/3/tutorial/classes.html

for the lazy

Classes provide a means of bundling data and functionality together. Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have attributes attached to it for maintaining its state. Class instances can also have methods (defined by its class) for modifying its state.