def loop():
for i in range(10):
if i == 3:
i += 5
print(i)
loop()
This code outputs "1, 2, 8, 4, 5, 6, 7, 8, 9" When i == 3, it gets set to 8. But on the next iteration, it gets reset to 4. How do I make it continue from "1, 2, 8" to "9"?
I've tried multiple things. Is there a way to use the continue keyword so it skips more than one iteration? Like this maybe:
continue * 5
Thank you in advance