title: Python For loops in While loop, starting for loop with a specific value
body: <p>I've started learning Python a few days ago and I ran into a program while coding something.</p>
  
  <p>Here's what I want to do using C++ code</p>
  
  <pre><code>number = SOME_NUMBER;
  while(1) {
      for(int i=number; i&lt;sizeOfArray; i++) {
          // do something
      }
      number = 0;
  }
  </code></pre>
  
  <p>Basically, for the very first iteration of my for loop, I want to start i at number.
  Then for every other time i go through the for loop, I want to start it at 0.</p>
  
  <p>My kind of hacky idea that I can think of right now is to do something like:</p>
  
  <pre><code>number = SOME_NUMBER
  for i in range(0, len(array)):
      if i != number:
          continue
      // do something
  
  while True:
      for i in range(0, len(array)):
          // do something
  </code></pre>
  
  <p>Is this the best way or is there a better way?</p>