title: How to get the n next values of a generator in a list (python)
body: <p>I have made a generator to read a file word by word and it works nicely.</p>
  
  <pre><code>def word_reader(file):
      for line in open(file):
          for p in line.split():
              yield p
  
  reader = word_reader('txtfile')
  next(reader)
  </code></pre>
  
  <p>What is the easiest way of getting the n next values in a list?</p>