title: Is there a way to have parallel for-each loops?
body: <p>Let's say I have 2 lists in Python and I want to loop through each one in parallel - e.g. do something with element 1 for both lists, do something with element 2 for both lists... I know that I can do this by using an index:</p>
  
  <pre><code>for listIndex in range(len(list1)):
     doSomething(list1[listIndex])
     doSomething(list2[listIndex])
  </code></pre>
  
  <p>But is there a way to do this more intuitively, with a foreach loop? Something like <code>for list1Value in list1, list2Value in list2</code>...?</p>
  
  <p>I've currently run into this situation in Python, but this is a longstanding question and I'd be interested to know if you can do this in any language. (I just assumed that Python is the most likely to have a method of dealing with this.)</p>