DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+7 =
Submit