Contribute Media
A thank you to everyone who makes this possible: Read More

How to create a generator function


Have a function that returns a list? You may be able to turn it into a generator function by replacing the append calls with yield statements.


Improve this page