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