Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

group list into sublists python

[input[i:i+n] for i in range(0, len(input), n)]        # Use xrange in py2k
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group #list #sublists #python
ADD COMMENT
Topic
Name
1+4 =