Each item is (name, score). Write top_name(pairs) that returns the name with the highest score (the first one if tied). The list is not empty.
top_name([['Asha', 80], ['Ravi', 92], ['Om', 75]]) → 'Ravi'
top_name([['A', 50], ['B', 50]]) → 'A'
Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.