is there a way to iterate again within the for loop? For example:
for x in list: if(condition): #I\'d like to grab the next iteration of the lis
You could do something like this:
a = [1,2,3,4,5] b = iter(a) try: while True: c = b.next() if (condition): c = b.next() except StopIteration: pass