1 / 8
INTRO

Both Halves at Once

Last lesson ended on this line:

python
for fruit in prices:
    print(fruit, prices[fruit])

It works. But look at what it's doing — the loop hands you a key, and then you immediately go back to the dictionary to fetch the other half you already knew was there.

Two steps for something that is really one thing: a pair.