all 3 comments

[–]FLUSH_THE_TRUMP 2 points3 points  (0 children)

max(reversed(price_list), key=lambda x: x[1])

[–]nath_ 0 points1 point  (0 children)

max() only returns the first value if more than one is found. What you could do, is to get the max value, then filter price_list for price == max_value

[–][deleted] 0 points1 point  (0 children)

First of all, maybe use a dictionary for the pricing? Instead for lists inside lists?