I am learning python, and I have a problem with list slice. when I try to get all element at the third position, I got the wrong one:
l = [9, 0, 7, 1, 7, 5, 5, 9, 8, 0]
th = l[::3]
>> [9, 1, 5, 0]
but in my logic it should be:
>> [7, 5, 8]
Why it returns a wrong result?