Log in or register to post comments Below code will print [1, 2, 3, 4, 5] mylist = ["2", "1", "5", "3", "4"] mylist = [int(i) for i in mylist] mylist.sort() print(mylist) Tags Python Data Structure Interview Questions Python Interview Questions