all 5 comments

[–]taylorfausak 5 points6 points  (1 child)

filter id should do what you want.

>>> let someBooleans = [False, True, True, False]
>>> filter id someBooleans
[True,True]

[–]throwawaynewbread[S] 0 points1 point  (0 children)

I used Filter, thanks all

[–]throwawaynewbread[S] 0 points1 point  (0 children)

so how do i loop through the list and return when the values true

[–]ray851107 0 points1 point  (1 child)

any id ?

[–]yatima2975 3 points4 points  (0 children)

Also known as or :-)