Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python loop through list in chunks

def chunker(seq, size):
    return (seq[pos:pos + size] for pos in range(0, len(seq), size))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #loop #list #chunks
ADD COMMENT
Topic
Name
5+7 =