Part 3
2 chapters
Principles: SOLID
The five SOLID principles in Python: single responsibility, open/closed and Liskov substitution, then interface segregation and dependency inversion without a framework.
Chapter 5
SRP, OCP, and LSP in Python
Single responsibility, open-closed and Liskov substitution on one rate quote: three collaborators, a tax rule that arrives as data, and a contract suite for what mypy cannot see.
Chapter 6
ISP, DIP, and dependency injection without a framework
A consumer names the smallest Protocol it uses, policy owns that abstraction, and one plain function wires the adapters, shown on a runnable booking service.