What does the "yield" keyword do in Python? - Stack Overflow
https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python
WEBOct 24, 2008 · What does the yield keyword do in Python? Answer Outline/Summary. A function with yield, when called, returns a Generator. Generators are iterators because they implement the iterator protocol, so you can iterate over them. A generator can also be sent information, making it conceptually a coroutine.
DA: 41 PA: 36 MOZ Rank: 79 Up or Down: Up