I looked for answers but couldn't find anything.
>my_list = [7,8,9]
>my_list[2:1:-1]
[9]
>my_list[2:0:-1]
[9, 8]
>my_list[2:-1:-1]
[] # I would expect [9, 8, 7]
I am aware there are other ways to reverse a list, but I'm curious why the above doesn't work? my_list[2,None,-1]
does work.