[Tutor] What exactly is [::-1]?

Dick Moores rdm at rcblue.com
Thu Jul 26 07:59:26 CEST 2007


At 08:38 PM 7/25/2007, Luke Paireepinart wrote:
> > I would like to know what exactly the index notation of [::-1] is, where
> > it comes from and if there are other variants.
> >
>This is called list slicing.  Look into it to figure out what all this
>stuff means.
>I could send you a link but I'd just google 'python list slicing' to
>find it, so I'll leave that as an exercise for the reader.

I don't find Google of help with this. Could someone supply a link?

Dick Moores




More information about the Tutor mailing list