+ 3
Generators are a good approach if you intend to return a large list of values, but you don't need to provide them all at once, and you don't even know beforehand if you're going to use them all. Instead, generators provide one value at a time.
31st Mar 2017, 5:27 AM
Álvaro