In this course, you’ve learned about generator functions and generator expressions.
You now know:
- How to use and write generator functions and generator expressions
- How the all-important Python
yield
statement enables generators - How to use multiple Python
yield
statements in a generator function - How to use
.send()
to send data to a generator - How to use
.throw()
to raise generator exceptions - How to use
.close()
to stop a generator’s iteration - How to build a generator pipeline to efficiently process large CSV files
How have generators helped you in your work or projects? If you’re just learning about them, then how do you plan to use them in the future? Did you find a good solution to the data pipeline problem?
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
davevikram on June 16, 2020
This is my first exposure to Generators. I found easy to follow with the samples provided.