Plays from YouTube. Watch on YouTube
When does a Python program need classes instead of disconnected variables?
Meet custom objects, representation invariants, tabular data and loops.
We start with inventory records, constructors and instance methods, then examine how a shared class describes independent objects.
From there, we process tables using for loops, accumulators, comprehensions and nested traversal.
Finally, we reason about empty inputs and the guarantees that loops should preserve.
The big idea: organize state and iteration around the meaning of your data.
Python and object-oriented design explained visually, one concept at a time.