thislist = [677,8765,8765,876,470,754,6784,56789,7658,] thislist.sort() print ("The smallest number is: " + str(thislist[0])) print ("The largest number is: " + str(thislist[-1]))