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
i += 4
Where the loop counter i gets incremented by 4 if the condition holds true, else it will just increment by one (or whatever the step value is for the for loop)?
I know a while loop would be more applicable for an application like this, but it would be good to know if this (or something like this) in a for loop is possible.
Thanks!
for i,item_in_list in enumerate(foo_list): print(i,item_in_list)