Medium
Names and Scores as Tuples
Read names on one line and scores on the next. Zip them into a list of (name, score) tuples with integer scores, sort it by score from high to low (ties by name) and print it.
Input
Two lines.
Output
A list of tuples.
Sample 1
Input
Mim Rafi Sara 80 95 80
Output
[('Rafi', 95), ('Mim', 80), ('Sara', 80)]Sample 2
Input
A 1
Output
[('A', 1)]Output appears here