Copy as MarkdownCtrl+⇧+C
Phase 2 — Specify with Types
Chapters 34, 35, 36, 37: Types as the Language of Intent
Your role: Specifier — "I can tell AI precisely what to build"
AI output is only as good as your specification. Phase 2 teaches you to specify with precision — using Python's type system as the vocabulary you give to AI before it writes a single line. You learn primitive types and expressions, typed collections (lists, dictionaries, tuples, sets), data models for structuring real domains, and function signatures as contracts. By the end, you can write a type-annotated specification that tells AI exactly what to build — no ambiguity, no guessing.
| # | Chapter | Key Focus |
|---|---|---|
| 34 | Primitive Types and Expressions | The building blocks of typed specifications |
| 35 | Collections — Lists, Dicts, Tuples, Sets | Structured data for real domains |
| 36 | Data Models — Dataclasses and Pydantic | Modeling your domain precisely |
| 37 | Functions as Contracts | Function signatures as specification language |