Challenge 2: Coordinate Unpacking — Possible Solution ==================================================================== points = [(1, 2), (3, 4), (5, 6)] for x, y in points: print(f"x={x}, y={y}") Output: x=1, y=2 x=3, y=4 x=5, y=6 WHY THIS WORKS AS AN ANSWER ------------------------------ for x, y in points combines two things covered separately earlier in the chapter: the for-loop iteration from Chapter 4, and tuple unpacking (x, y = point) from this chapter's tuples section. Python allows the unpacking to happen directly in the loop header, so each tuple in points is unpacked into x and y fresh on every iteration, without a separate point variable or a manual point[0]/point[1] step. This only works cleanly because every tuple in points has exactly two elements, matching the two names (x, y) being unpacked into — the same "shape must match" behavior demonstrated with a single tuple in the chapter's own x, y = point example. The f-string f"x={x}, y={y}" then reuses the formatting covered in Chapter 5 to build each output line.