Re: [Tutor] On slicing

2009-09-17 Thread george fragos
2009/9/17 Rich Lovely : > 2009/9/17 george fragos : >>  If numbers=[1,2,3,4,5,6,7,8,9,10] and since "...any time the >> leftmost index in a slice comes later in the seqence than the second >> one... the result is always an empty sequence", why the slice >> numbers[10:0:-2] produces the sequence [10

Re: [Tutor] On slicing

2009-09-17 Thread Rich Lovely
2009/9/17 george fragos : >  If numbers=[1,2,3,4,5,6,7,8,9,10] and since "...any time the > leftmost index in a slice comes later in the seqence than the second > one... the result is always an empty sequence", why the slice > numbers[10:0:-2] produces the sequence [10,8,6,4,2] but not the > sequen

[Tutor] On slicing

2009-09-17 Thread george fragos
If numbers=[1,2,3,4,5,6,7,8,9,10] and since "...any time the leftmost index in a slice comes later in the seqence than the second one... the result is always an empty sequence", why the slice numbers[10:0:-2] produces the sequence [10,8,6,4,2] but not the sequence []?