title: how to increment the iterator from inside for loop in python 3?
body: <pre><code>for i in range (0, 81):
      output = send command
      while True:
          last_byte = last_byte - offset
      if last_byte &gt; offset:
         output = send command
         i+
      else:
          output = send command
          i+
          break
  </code></pre>
  
  <p>I want to increase the iterator every time the send command is executed. Right now it only increases by one when the for loop is executed. Please advise </p>
  
  <pre><code>for i in range(0,10):
      print(i)
      i +=2
      print("increased i", i)
  </code></pre>
  
  <p>I ran this code and it produced out from 0 to 9. I was expecting it would increase the iterator by 2.</p>