Python Iterators and Generators

Instead of using the return keyword, a generator function uses
A list is
Why use a generator rather than a list?

Leave a Reply

Your email address will not be published. Required fields are marked *