title: python: restarting a loop
body: <p>i have:</p>
  
  <pre><code>for i in range(2,n):
      if(something):
         do something
      else:
         do something else
         i = 2 **restart the loop
  </code></pre>
  
  <p>But that doesn't seem to work. Is there a way to restart that loop? </p>
  
  <p>Thanks</p>