Loading exercise...

Exercise: Tuple Sums

Avatar image for Ziggy

Ziggy on Nov. 4, 2026

Can’t remember that enumerate was mentioned in the lessons.. my code:

data = ((1, 2), (3, 4))
for row in data:
    print(f"Row {data.index(row) + 1} sum: {sum(row)}")

Become a Member to join the conversation.