Python Iterators and Generators Leave a reply Why use a generator rather than a list? With a list the first element is returned before the second item is calculated. Saves memory by not creating all the elements at once. Generators can be used on infinite streams A list is an iterator a generator an iterable Instead of using the return keyword, a generator function uses Time is Up! Time's up