Python generators are the best way to iterate through large and complex data sets. Find out how to use generators in your own code, in these Python tutorials.
- View Offline
- Python generators are the best way to iterate through large or complex data sets, especially when performance and memory are of concern. That's what this course is all about. I'm Josh McQuiston and I'm a Pythonista and always loved learning interesting new programming tools. In this course, I'll help you understand exactly what generators are and how you can use them in your code. I'll start by showing you Python generators. I'll discuss what they are and give you a few examples of how they can be used to take your code to the next level.
Then I'll cover how Python generators lie under the hood of two other useful Python constructs, context managers, and code routines. So put on some programming-jams and pull up a chair. It's time to start working with generators.