Extended iterable unpacking PREMIUM

Topic Series: Tuple Unpacking

Trey Hunner smiling in a t-shirt against a yellow wall
By Trey Hunner

Topic Trail: Tuple Unpacking

It's tempting to reach for indexes when working with tuples, lists, and other sequences, but if we know the shape of the tuple we're working with, we can unpack it instead.

Tuple unpacking (aka "multiple assignment" or "iterable unpacking") is often underutilized by new Python programmers.

To track your progress on this Python Morsels topic trail, sign in or sign up.

0%