Run
mylist = [('apple',84), ('banana',92) , ('cherry',88) , ('mango',86), ('lichi',89)] # Sort by second element of tuple in descending order mylist.sort(key = lambda x: x[1], reverse=True) print(mylist)
Output