title: python arbitrarily incrementing an iterator inside a loop
body: <p>I am probably going about this in the wrong manner, but I was wondering how to handle this in python. </p>
  
  <p>First some c code:</p>
  
  <pre><code>int i;
  
  for(i=0;i&lt;100;i++){
    if(i == 50)
      i = i + 10;
    printf("%i\n", i);
  }
  </code></pre>
  
  <p>Ok so we never see the 50's... </p>
  
  <p>My question is, how can I do something similar in python? For instance:</p>
  
  <pre><code>for line in cdata.split('\n'):
    if exp.match(line):
      #increment the position of the iterator by 5?
      pass
    print line
  </code></pre>
  
  <p>With my limited experience in python, I only have one solution, introduce a counter and another if statement. break the loop until the counter reaches 5 after exp.match(line) is true. </p>
  
  <p>There has got to be a better way to do this, hopefully one that does not involve importing another module. </p>
  
  <p>Thanks in advance!  </p>