Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.25 KB

File metadata and controls

50 lines (32 loc) · 1.25 KB

Learn Python Classes and Objects

An incremental LearnPack to practice how to model real-world data using Python classes.

Project Goal

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

Curriculum Outline

  • 00-Welcome: Course intro and workflow
  • 01-03: Class basics, constructors, and methods
  • 04-06: Validation, defaults, and object representation
  • 07-09: Composition and lists of objects
  • 10-12: Properties, encapsulation, and inheritance

Exercise Structure

Each folder inside exercises/ should contain exactly:

  1. README.es.md with one clear learning objective
  2. app.py as the student template
  3. test.py with isolated pytest tests

Local Run

After container setup:

  1. Start LearnPack:
learnpack start
  1. Open the exercise UI in the forwarded browser tab.

Notes

  • This repository is designed for GitHub Codespaces and LearnPack.
  • Keep exercises focused on one responsibility per step.