mystery string code - help!

Dan M catdude at gmail.com
Wed Apr 20 19:01:54 CEST 2011


> 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 at 
http://docs.python.org/release/2.3.5/whatsnew/section-slices.html

Dan



More information about the Python-list mailing list