a=[1,2,3,4,5,6,7,8,9]
print(a[8:-10:-2])
output i get
[9, 7, 5, 3, 1]
can anyone explain the logic and breakdown of python code output. I m just a beginner. I asked bing ai and chat gpt for answer. According to them output should be empty list whereas according to replit, codechef and jdoodle output should be [9, 7, 5, 3, 1]
.