Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert list of list to list

>>> import itertools
>>> list2d = [[1,2,3], [4,5,6], [7], [8,9]]
>>> merged = list(itertools.chain(*list2d))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #list #list #list
ADD COMMENT
Topic
Name
3+9 =