def checkio(data):
s1=[]
s2=[]
data.sort()
for x in reversed(data[0:len(data):2]):
s1.append(x)
for y in reversed(data[0:(len(data)-1):2]):
s2.append(y)
print(s1, s2)
checkio([5, 8, 13, 27, 14])
If iteration over data[0:len(data):2] starts at item with the last index, why does the iteration over data[0:(len(data)-1):2] does not start at item with index just before the last?