I
idkfaidkfaidkfa
Hi all,
i'm programming in python for the first time (usually i use C as programming language). I don't understand these results:
what does a[2::-1] means?
Thanks
i'm programming in python for the first time (usually i use C as programming language). I don't understand these results:
[3, 2, 1]a=[1,2,3,4,5]
a[:-1] [1, 2, 3, 4]
a[::-1] [5, 4, 3, 2, 1]
a[2::-1]
what does a[2::-1] means?
Thanks