Concept
A tuple is a fixed sequence that cannot be changed after it is built, which makes it the natural way to return several values. Unpacking assigns each item to its own name in one line.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Tuples and unpacking doing its job.
def min_max(values):
return min(values), max(values)
low, high = min_max([4, 9, 1])
print(low, high) # 1 9
point = (3, 5)
x, y = point
first, *rest = [1, 2, 3, 4] # 1 [2, 3, 4]Writing (5) when you want a one-item tuple. The parentheses are just grouping; it is the comma that makes a tuple, so write (5,).
Your roadmap puts these before Tuples and unpacking, unless you already know them.
Once a session shows you understand Tuples and unpacking, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.