Python Arena

Module 34

Defining classes

Writing classes of your own. The class keyword, a constructor __init__ with self, attributes that each object has, and objects of your own classes in lists and functions.

Steps

  1. Your first class
  2. The constructor and self
  3. Attributes of every kind
  4. Your objects in functions and lists