When can you turn a list comprehension into a generator expression?
We're taking a list comprehension that squares a bunch of numbers and passing it into a function that multiplies all those numbers together:
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Generator Expressions series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.