Python Online compiler - OverIQ.com (original) (raw)
list1 = [12, -2, 3, 4, 100, 50]
list1.sort() # sort the list in ascending order
print(list1)
types = ["str", "float", "int", "list"]
types.sort() # sort the list, strings are sorted based on the ASCII values
print(types)