I am avoiding using a while loop
In Java, I could do something like
for (int i = 0; i < 10; i++){
if(.......) i = 0;
//this will reset i to 0
}
In python this doesn't work:
j = 1
for i in range(j, n):
if .....:
j = 1
Is there a way i can reset the value of j.
NB: A while loop would solve the problem for me but I don't want to use it. Thanks