title: Multiple Generators
body: <p>I'm trying to write a procedure for a baseball program that will use multiple generators to get strikes and balls.  My generators look like this:</p>
  
  <pre><code>k = (strike(x) for x in range(3) if x%1 ==0)  
  w = (ball(n) for n in range(4) if x%1 == 0)
  </code></pre>
  
  <p>The procedure that I have so far looks like this:</p>
  
  <pre><code>def count(pitch):
      if pitch == 'strike':
          return next(k),w
      elif pitch =='ball':
          return next(w),k
  </code></pre>
  
  <p>I would like my code to return the <em>next</em> results for strike and also return the <em>current</em> for balls, <strong>And vice versa.</strong> Please help I'm pretty stumped.</p>