0 of 6 problems solved • 0%

Exercise prompt

Unpack a Score

Names on the left of an unpacking assignment follow the same order as the items on the right.

Example

card = ("Eli", 7) player, points = card print(player.upper(), points + 2) # ELI 9

The name becomes a string and the score becomes a number. They support different operations.

Your task

Complete score_line(result). Each result is a (home score, away score) pair. Return those scores as text separated by a hyphen, with the home team first.