InterviewSolution
Saved Bookmarks
| 1. |
What are generators in Python? |
|
Answer» Generators are functions that return an iterable collection of items, one at a time, in a SET manner. Generators, in general, are used to create iterators with a different approach. They employ the use of YIELD keyword rather than return to return a generator object. |
|