Have you ever had to work with a dataset so large that it overwhelmed your machineβs memory? Or maybe you have a complex function that needs to maintain an internal state every time itβs called, but the function is too small to justify creating its own class. In these cases and more, generators and the Python yield statement are here to help.
By the end of this course, youβll know:
- What generators are and how to use them
- How to create generator functions and expressions
- How the Python
yieldstatement works - How to use multiple Python
yieldstatements in a generator function - How to use advanced generator methods
- How to build data pipelines with multiple generators
If youβre a beginner or intermediate Pythonista and youβre interested in learning how to work with large datasets in a more Pythonic way, then this is the course for you.









Andy Pickett on Feb. 10, 2021
Fantastic explanation thank you! Really helped with a topic Iβve been struggling with in another course.