Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to split a list to 1000 items python

def chunks(lst, n):
    """Yield successive n-sized chunks from lst."""
    for i in range(0, len(lst), n):
        yield lst[i:i + n]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #list #items #python
ADD COMMENT
Topic
Name
6+1 =