Tuples and Unpacking

A tuple groups a few values that belong together, such as a city and its miles, and can't be changed once made, and unpacking gives each value its own name in one line, which is how a function returns two values and how two variables swap.

By

Updated

Cheat sheet: Tuples and Unpacking
Category
Python
Level
Apprentice
Tags
Immutable, python, Return Value (python), Tuple (python), Tuple Unpacking