title: How to return generator outputs
body: <p>I want to figure out how to return generator outputs. I know that <code>next(generator)</code> returns the yielded output of the function, but I want to know how to return multiple yielded outputs. </p>
  
  <p>For instance:</p>
  
  <pre><code>alist = [1,2,3,4,5,6]
  def aiterator():
      for i in alist:
          yield i+1
  
  generator = aiterator()
  </code></pre>
  
  <p>I know that <code>next(generator)</code> will return 1, but how do I return 2,3, or if I want, 2,3,4 without typing <code>next(generator)</code> twice or three times?</p>
  
  <p>Specifically, I'm thinking of another function which will return the number of <code>next(generator)</code>s:</p>
  
  <pre><code>for i in aiterator():
    return ?
  </code></pre>