python: for short_list in long_list
<p>I have a long list with <code>N</code> elements. I would like to iterate the long list, but picking  <code>K</code> elements at every iteration (or less if there are less than <code>K</code> in the long list). What would be the most elegant way to do it?</p>

<pre><code>for short_list_K in long_list_N:
    # len(short_list_K) &lt;= K
</code></pre>
