someone wrote:
> I cannot quite understand when the third index is a negative
> number,like this:
> a = '0123456789'
> a[1:10:2] I know the index step is 2, so it will collect items from
> offset 1, 3, 5, 7, 9
> but when a negative number come,like:
> a[1::-1] answer '10', and a[1:10:-1] only answ
I cannot quite understand when the third index is a negative
number,like this:
a = '0123456789'
a[1:10:2] I know the index step is 2, so it will collect items from
offset 1, 3, 5, 7, 9
but when a negative number come,like:
a[1::-1] answer '10', and a[1:10:-1] only answer '',
what is the different b