use sort() function to sort [34,1,2,6,3,7], [[1,3], [3,2], [1,2], [3,1]] and ['a', 'x', 'e', 'A', 'X', 'E'] and tell us what you observe in 2nd, 3rd list"
print(sorted([34,1,2,6,3,7]))
print(sorted([[1,3], [3,2], [1,2], [3,1]]))
print(sorted(['a', 'x', 'e', 'A', 'X', 'E']))
Comments
Leave a comment