How to break out of the loop only if a certain case is met, but then continue the iteration?
<p>I realize that the title may be somewhat confusing, so I apologize.</p>

<p>Basically, this is my code:</p>

<pre><code>while i &lt; 5:
   do stuff
   if i == 3:
      print "i is 3"
      break
</code></pre>

<p>Now all that sounds pretty simple, right? Except I don't really want to BREAK from the loop as much as I'd want it to start over again. So in this case the desired result would be to iterate through 1, 2, then when 3 break out, but then continue iterating with 4. How do I do that?</p>
