Foundations

This part is the running start. It assumes nothing — not Python, not programming, not even that you’ve read about Python before. By the time you finish it, you will be able to read and write idiomatic Python code: variables, control flow, functions, classes, files, modules, the standard library, and the practices that make a script a real program.

The arc walks the ladder from concept to capability:

Each chapter ends with a Going deeper pointer to the chapter in Parts I–V where the topic is taken apart in detail. You can read this Foundations part end-to-end, then continue into the deep dives — or you can skip ahead and treat Foundations as reference. The book is structured to support either path.

By the end, you will be a capable Python programmer. After that, the rest of the book is about why Python feels the way it does — the data model, the protocols, the descriptors, the metaclasses — and how to use those mechanisms to write code that participates in the language instead of fighting it.