Nov-04-2019, 07:08 PM
you change the contents of aList in yourloop.
do you want to sort?
do you want to sort?
aList = [3, 2, 5, 7, 6, 8] aList.sort() print (aList[:len(aList)-2])