Answers for "python max value of list of tuples"

0

python max value of list of tuples

In [53]: lis=[(101, 153), (255, 827), (361, 961)]

In [81]: from operator import itemgetter

In [82]: max(lis,key=itemgetter(1))[0]    #faster solution
Out[82]: 361
Posted by: Guest on May-20-2021

Code answers related to "python max value of list of tuples"

Python Answers by Framework

Browse Popular Code Answers by Language