Multiple counters in a single for loop : Python
Posted
by Sayan Ghosh
on Stack Overflow
See other posts from Stack Overflow
or by Sayan Ghosh
Published on 2010-04-20T06:12:48Z
Indexed on
2010/04/20
6:23 UTC
Read the original article
Hit count: 330
Is it possible in Python to run multiple counters in a single for loop as in C/C++? I would want something like -- for i,j in x,range(0,len(x)):
I know Python interpretes this differently and why, but I would need to run two loop counters concurrently in a single for...?
Thanks, Sayan
© Stack Overflow or respective owner