title: Stepwise subsetting of a list in Python
body: <p>My current solution looks like:</p>
  
  <pre><code>import numpy as np
  
  chunksize = 10
  l = list(np.arange(0,99))
  
  while len(l) &gt; chunksize:
      l_subset = l
      l_subset = l_subset[0:chunksize]
      l.pop(0)
      print(l_subset)
  </code></pre>
  
  <p>This doesn't look like a very efficient solution, since .pop requires traversing the list. What are fast ways to do that?</p>