Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python multilevel list comprehension

>>> [y for x in non_flat for y in x]
[1, 2, 3, 4, 5, 6, 7, 8]
Source by spapas.github.io #
 
PREVIOUS NEXT
Tagged: #python #multilevel #list #comprehension
ADD COMMENT
Topic
Name
9+6 =