Let's talk about deep tuple unpacking in Python.
We have a
for loop which, as we loop over it, will give us tuples which contain a number, a color and an animal:
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Tuple Unpacking series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.