title: Moving back an iteration in a for loop
body: <p>So I want to do something like this:</p>
  
  <pre><code>for i in range(5):
      print(i);
      if(condition==true):
          i=i-1;
  </code></pre>
  
  <p>However, for whatever reason, even though I'm decrementing i, the loop doesn't seem to notice. Is there any way to repeat an iteration?</p>