Skip to content

Glossary: Data Structures and Algorithms

Tuple unpacking

Also written: unpacking, unpack

Splitting a tuple into separate variables in one statement, such as `a, b = b, a` to swap two values or `day, cafe = heappop(orders)`.

Where the book teaches it