Challenge 1
Unpack the two coordinates into x and y.
point = (7, 9)
x, y =
print(x + y)
Press Ctrl⌘Enter to check your answer
Practice exact unpacking, starred targets, nested targets, and value swapping.
Challenge 1
point = (7, 9)
x, y =
print(x + y)
Press Ctrl⌘Enter to check your answer
Challenge 2
values = [10, 20, 30, 40]
first, *rest =
print(first)
print(rest)
Press Ctrl⌘Enter to check your answer
Challenge 3
record = ("Grace", 25)
print(name, score)
Press Ctrl⌘Enter to check your answer
Challenge 4
left = "red"
right = "blue"
print(left, right)
Press Ctrl⌘Enter to check your answer