Is it possible to increment a for loop inside of the loop in python 3?
for example:
for i in range(0, len(foo_list)): if foo_list[i] < bar
a bit hackish...
>>> b = iter(range(10)) >>> for i in b: ... print(i) ... if i==5 : i = next(b) ... 0 1 2 3 4 5 7 8 9 >>>