Part 4 · Section 07

Project 3

This project turns the single-inheritance tools from the previous section into a small but realistic package. You’ll model the parts inventory of someone who builds computers: pools of identical CPUs, hard drives and SSDs that get claimed for builds, freed up again, occasionally burnt out, and restocked. A general Resource base class holds everything all parts have in common, and specialized subclasses add only what’s different, delegating the rest with super().

The solution is organized like a real project, with an app package (split into models and utils) and a tests folder, and it’s checked by a suite of unit tests that you’ll run right in the browser.

In this project you’ll:

Lectures

  1. 01Project 3 - Description✓
  2. 02Project 3 - Solution - Approach✓

Practice: quiz & exercises

8 quiz questions · 4 coding exercises

Go to practice →