I want for loop to change its pass behavior
For example, make it jump every 3rd index to another 2 positions?
for i in range(n):
if i % 3 == 0:
print('found i div by 3, jump 2 positions forward')
i = i + 2
This does not work.
It goes through every i
in range from 0 to n
.