You can choose which pair to return inside a branch. Every branch should keep the same meaning for the first and second positions.
def mark(won):
if won:
return ("win", 3)
return ("loss", 0)
word, points = mark(True)
print(word, points) # win 3Both branches put the word first. The caller can unpack either result in exactly the same way.
Complete ascending(pair). Return the two readings as a tuple ordered from smaller to larger. Inputs may be negative or equal. Keep both readings in the result.