For Counter Variable

Oscar Benjamin oscar.j.benjamin at gmail.com
Sun Sep 23 14:04:38 EDT 2012


On Sep 23, 2012 6:52 PM, "jimbo1qaz" <jimmyli1528 at gmail.com> wrote:
>
> On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote:
> > Am I missing something obvious, or do I have to manually put in a
counter in the for loops? That's a very basic request, but I couldn't find
anything in the documentation.
>
> Ya, they should really give a better way, but for now, enumerate works
pretty well.

I can't tell who you're responding to here. It would make more sense if you
quote from the post you're replying to.

Also, maybe there is a better way. Unfortunately your post was quite vague
so this is as good a response as you can hope for. Why don't you post a
code snippet representing what your trying to do? Then someone can tell you
a better way if there is one.

Oscar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120923/ac8adcc1/attachment.html>


More information about the Python-list mailing list