7
Putting It Together
The last day is about writing Python the way working programmers do: lazily, in modules, with tests — finishing with a program you build yourself.
Lessons
- 1 Iterators & Generators Explore Produce values one at a time with yield — the idea behind for loops, file reading, and pipelines that never run out of memory. generators yield iterators
- 2 Multi-File Projects Split a program across modules and packages, with imports that behave and a main entry point. modules packages structure
- 3 Testing Your Code assert, unittest and pytest — how to know your program still works after you change it. testing unittest pytest
- 4 Capstone: Build Something A complete program that uses everything from the week — and a map of where to go next. project capstone next-steps
- 5 On Your Own: A Fresh Brief Start a program from a blank file — a brief, requirements and sample output, with no finished version above it — then judge your own work against four questions. project independent practice next-steps
- 6 Come Back Later: Review Challenges Short mixed challenges to do a week after the course and again a month after — because what you can still do then is what you've really learned. review practice retrieval