Run
list_of_tuples = [ ('apple', 25), ('banana', 54), ('cherry', 10), ('fig', 36) ] sorted_list = reversed(sorted(list_of_tuples, key=lambda x: x[1])) print(list(sorted_list))
Output