python max value of list of tuples

Solutions on MaxInterview for python max value of list of tuples by the best coders in the world

showing results for - "python max value of list of tuples"
Sarah
03 Jul 2017
1In [53]: lis=[(101, 153), (255, 827), (361, 961)]
2
3In [81]: from operator import itemgetter
4
5In [82]: max(lis,key=itemgetter(1))[0]    #faster solution
6Out[82]: 361
7