1. Classes as objects

If using Mu editor, use python3 mode for the examples given.

1.1. Class attributes and methods

Classes provide a means of bundling data and functionality together.
A Class is a code template or blueprint for creating instances (objects).
An instance of a class is an object which has a collection of data (variables) and methods (functions) that act on those data.
Each class instance can have attributes for data.
Each class instance can also have methods for modifying its data.
Variables in a class are known as attributes.
Functions in a class are known as methods.
class_objects
Attributes are variables related to objects.
Methods are functions related to objects.