generator function
Yield in Python – beyond the data generation