Medium
Sortable Objects
Write a
Player class with name and score, and __lt__ so that higher scores come first (ties by name). Read players until END and print the names in sorted order.Input
Lines 'name score', then END.
Output
One line.
Sample 1
Input
Mim 30 Rafi 50 Sara 30 END
Output
Rafi Mim Sara
Sample 2
Input
A 1 END
Output
A
Output appears here