chainsol icon

Untitled

chainsol | PRO | 07/26/17 08:04:02 PM UTC | 0 ⭐ | 504 👁️ | Never ⏰ | []
Python |

130 B

|

None

|

0 👍

/

0 👎

def chunks(l, n):
    """Yield successive n-sized chunks from l."""
    for i in xrange(0, len(l), n):
        yield l[i:i + n]

Comments