Popular recipes tagged "sublist" but not "sequence"http://code.activestate.com/recipes/tags/sublist-sequence/2010-12-21T16:28:20-08:00ActiveState Code RecipesSublists (Python)
2010-12-21T16:28:20-08:00Michael Pucketthttp://code.activestate.com/recipes/users/4176295/http://code.activestate.com/recipes/577510-sublists/
<p style="color: grey">
Python
recipe 577510
by <a href="/recipes/users/4176295/">Michael Puckett</a>
(<a href="/recipes/tags/grouping/">grouping</a>, <a href="/recipes/tags/list/">list</a>, <a href="/recipes/tags/sublist/">sublist</a>).
</p>
<p>The opposite of list flattening. </p>
<p>Given a list and a length n return a list of sub lists of length n.</p>