Python · Lesson 12.7 · Pro
Designing a small class
When a class helps, when a function is enough, and how to build one step by step.
In this lesson
- Start with a function
- A class that keeps state
- Build an inventory, step by step
- Put it together
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.