An incremental LearnPack to practice how to model real-world data using Python classes.
Build practical OOP skills through 12 short exercises that increase in complexity.
By the end of this LearnPack, students should be able to:
- Create classes and instantiate objects
- Define attributes and methods
- Validate and normalize object state
- Work with composition and collections of objects
- Use encapsulation and properties
- Apply inheritance to reuse behavior
00-Welcome: Course intro and workflow01-03: Class basics, constructors, and methods04-06: Validation, defaults, and object representation07-09: Composition and lists of objects10-12: Properties, encapsulation, and inheritance
Each folder inside exercises/ should contain exactly:
README.es.mdwith one clear learning objectiveapp.pyas the student templatetest.pywith isolatedpytesttests
After container setup:
- Start LearnPack:
learnpack start- Open the exercise UI in the forwarded browser tab.
- This repository is designed for GitHub Codespaces and LearnPack.
- Keep exercises focused on one responsibility per step.