How to Use Generators and yield in Python Quiz - Real Python
Briefly

Generators and the Python yield statement can help you when you're working with large datasets that might overwhelm your machine's memory.
When you understand Python generators, then you'll be able to work with large datasets in a more Pythonic fashion, create generator functions and expressions, and apply your knowledge towards building efficient data pipelines.
Read at Realpython
[
]
[
|
]