Lazy Looping in Python Tutorial¶
This tutorial was taught by Trey Hunner at PyCon 2019 and was taught as an O’Reilly live online training. If you would like Trey to host this workshop or other Python workshops at your company, you may contact him through his team training website.
If you enjoy the exercises in this workshop and you’d like to keep up your Python practice through weekly exercises, try Python Morsels, Trey’s online Python exercise service.
The video for this tutorial can be found as “Lazy Looping in Python: Making and Using Generators and Iterators” on YouTube.
- The Test Framework
- Advanced For Loops
- Generator Expressions
- Generator Functions
- The Iterator Protocol
- Lazy Looping Helpers
- Further Resources
- Exercise Answers & Tips