title: Associating 2 lists
body: <p>I'm creating 2 lists out of some <code>re.findall</code> running on a string.</p>
  
  <pre><code>jobids = re.findall(r'R=(\d+)', (str(key['Job Dependencies'])))
  jobdeps = re.findall(r'J=(\d+)', (str(key['Job Dependencies'])))
  </code></pre>
  
  <p>These both create a list like so:</p>
  
  <pre><code>['14866152', '0', '0', '14866149', '0', '14866156']
  ['75205', '52336', '75208', '75207', '75197', '75200']
  </code></pre>
  
  <p>The lists will always have the same number of elements in the case above that's <code>6</code>.</p>
  
  <p>What I want to do is scan the first list and if it's a <code>0</code> I want the number from the second list at the same value.</p>
  
  <p>I'm guessing I need to do something like:</p>
  
  <pre><code>for key in jobids:
      if key == '0':
          print jobdeps
  </code></pre>
  
  <p>But that returns the whole list and I don't want it.  I want in the example above 3 separate returns of <code>'52336'</code>, <code>'75208'</code> and <code>'75197'</code>.</p>