← Code LabPython0/50 solved · 0%
Collections · easy

9. Tuples and unpacking

Fixed-size records and unpacking.

Write `swap(a, b)` returning a tuple `(b, a)` using tuple unpacking.
Required in your answer: def swap