title: How to take the first N items from a generator or list?
body: <p>With <a href="/questions/tagged/linq" class="post-tag" title="show questions tagged &#39;linq&#39;" rel="tag">linq</a> I would</p>
  
  <pre><code>var top5 = array.Take(5);
  </code></pre>
  
  <p>How to do this with Python?</p>