In order to reverse the order of an array, I discovered that I'm 
supposed to use [::-1]. 

 >>> a = array([1., 2., 3.])
 >>> a
array([ 1.,  2.,  3.])
 >>> a[::-1]
array([ 3.,  2.,  1.])
 >>>

I would like to know what exactly the index notation of [::-1] is, where 
it comes from and if there are other variants.

Thank you for your help.  I lurk about on this list and have learned a 
fair bit.

-- 
Charles Cuell
[EMAIL PROTECTED]
http://math.usask.ca/~cuell

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to