This book is designed to stand on its own. The companion downloads make practice faster, and give you printable references once you understand the concepts.
Every file here is free. There is no sign-up, and no email address is asked for.
-
Core syntax and operators on a compact printable reference: output, variables and types, conversion, input, f-strings, arithmetic, comparisons, decisions, loops, functions, files, exceptions, and classes.
-
Lists, Strings, and Dictionaries Cheat Sheet
High-frequency operations on the three collections you use most, with slicing, split and join, tuples and sets, how to choose a collection, and a closing table of the mistakes each one invites.
-
Thirty-six beginner error messages in the order you meet them, each with what it means, what to check first, and the smallest program that produces it.
-
One printable page to work through before you change a line: what to check before you run, how to read an error, what to do when the answer is wrong but nothing is reported, and what to verify before calling a program finished.
-
Three or four questions per chapter across all fourteen chapters, mixing prediction, tracing, modification, debugging, and building from a blank file, with answers complete enough to check yourself against.
-
Thirty mixed questions covering the whole book in four parts: predict the output, find and fix the defect, short answer, and write the code. Answers are included.
-
Clean .py files for the four Chapter 14 projects, with the function names the chapter uses, TODO comments in every body, a README carrying the requirements and acceptance tests, and sample data for the file stretch goals. They run as they stand; they are not solutions.