title: What's the best way of skip N values of the iteration variable in Python?
body: <p>In many languages we can do something like:</p>
  
  <pre><code>for (int i = 0; i &lt; value; i++)
  {
      if (condition)
      {
          i += 10;
      }
  }
  </code></pre>
  
  <p><strong>How can I do the same in Python?</strong> The following (of course) does not work:</p>
  
  <pre><code>for i in xrange(value):
      if condition:
          i += 10
  </code></pre>
  
  <p>I could do something like this:</p>
  
  <pre><code>i = 0
  while i &lt; value:
    if condition:
      i += 10
    i += 1
  </code></pre>
  
  <p>but I'm wondering if there is a more elegant (<em>pythonic?</em>) way of doing this in Python.</p>