title: How to change index of a for loop?
body: <p>Suppose I have a for loop:</p>
  
  <pre><code>for i in range(1,10):
      if i is 5:
          i = 7
  </code></pre>
  
  <p>I want to change <code>i</code> if it meets certain condition. I tried this but didn't work.
  How do I go about it?</p>