Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python multilevel list comprehension

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