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 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