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

How to create a generator function

Description

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.

Details

Improve this page