On Wed, Sep 3, 2014 at 1:24 PM, MRAB <pyt...@mrabarnett.plus.com> wrote: > Iterating over a list yields its contents, not indexes.
Unlike in JavaScript. Not sure where the OP is coming from, but that "feature" of JavaScript threw me when I first encountered it. My guess would be that his prior experience includes (at least) JS. Skip -- https://mail.python.org/mailman/listinfo/python-list