OverIQ.com
Run (or Hit F9)
list1 = [12, -2, 3, 4, 100, 50] list1.sort() # sort the list in ascending order print(list1) list1.reverse() # sort the list in descending order print(list1)