mystery string code - help!

Uncle Ben ben at greenba.com
Wed Apr 20 20:58:14 EDT 2011


On Apr 20, 1:01 pm, Dan M <catd... at gmail.com> wrote:
> > As a newbie Pythoner, I understand [] -1] but would some tell me how
> > '::' does its magic?
>
> > Uncle Ben
>
> The -1 is the "stride" or "step" argument. It's described athttp://docs.python.org/release/2.3.5/whatsnew/section-slices.html
>
> Dan

Very helpful!

Ben



More information about the Python-list mailing list