title: Is there a 'skip-range' technique in FOR-loops in Python?
body: <p>Let's pretend (since it's true) that I have a Python (3) script that needs to iterate over a 2D array (any length, but each element is just an array of 2 ints, as per the list below).</p>
  
  <pre><code>linCirc  = [[1,10],
              [2, 1],
              [0, 2],
              [2, 2],
              [2, 3],
              [2, 4],
              [2, 0],
              [2, 5]]
  </code></pre>
  
  <p>I want to iterate over this lovely thing recursively so that </p>
  
  <pre><code>for element in linCirc:
      if element[0] == 0:
          # skip element[1] elements
  </code></pre>
  
  <p>Essentially, all I need to know is the best way to loop over linCirc, and then when certain conditions are met, instead of going from <code>linCirc.index(element)</code> to <code>linCirc.index(element) + 1</code>, I can control the skip, and skip zero or more elements.  For instance, instead of going from <code>[0, 2]</code> to <code>[2, 2]</code>, I could go from <code>[0, 2]</code> to <code>[2, 4]</code>.  Is this the best way to do this? Should a for loop be involved at all?</p>
  
  <p>For the curious: This code is intended to linearize an electric circuit so that any circuit (with limited components; say, just resistors and batteries for now) can be represented by a 2D array (like linCirc).  I will post my full code if you want, but I don't want to clog this up with useless code.</p>