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 can use a while loop instead of a for. In pseudocode:
while
for
idx = 0 while idx < length(list) x = list[idx] ... if (condition) idx += 1 ... idx += 1