DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+3 =
Submit