If I have the following nested list in parenthesis:
[('Frank', '8'), ('Peter', '10'), ('Spank', '0')]
What can I do to return the maximum value and corresponding name from the list?
Desired output:
('Peter', '10')
I have tried max(list, key=itemgetter(1))[0] with no luck.