|
|
|
|
|
by thomasahle
3743 days ago
|
|
It's equivalent to planets_flat = []
for episode in episodes.values():
for planet in episode['planets']:
plants_flat.append(planet)
Notice how the for loops in the comprehension goes in the same order as in the imperative code. |
|
Thanks, that's a sane way to explain the order. Up to right now, it was always "the opposite of what you'd expect", which was a memory rule that always failed me.