Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python filter list with list of booleans

filtered_list = [i for (i, v) in zip(list_a, filter) if v]
 
PREVIOUS NEXT
Tagged: #python #filter #list #list #booleans
ADD COMMENT
Topic
Name
3+3 =