title: How to jump some steps when use python's for statement
body: <p>I have an interveiw yesterday, when I write python code to achieve some algorithm, I have a question. Some logic can be achieved like this using C:</p>
  
  <pre><code>void get_some_num(int a[], int length) {       
     int i;
     for(i = 0; i &lt; length - 1; ++i) {
         if(something) i++; // jump a num in the array
         a[i] = 1;
     }
      return some_num;
   }
  </code></pre>
  
  <p>C language can jump some elements(such as n) when using <code>i += n</code> statement in for-loop to iterate an array, but I find it's difficult to achieve by using python's for statement gracefully.</p>
  
  <p>How can I do it?</p>