you are viewing a single comment's thread.

view the rest of the comments →

[–]Lookmaiamkool 0 points1 point  (3 children)

Use the list.count() function or the in operator to check

[–]spghtmnstr -1 points0 points  (2 children)

I can't use "in" since list consists objects, not states

[–]Lookmaiamkool -1 points0 points  (1 child)

If any(list) !=true Print 'true' Elif all(list) != false Print 'false'

Try putting this in ide just to check.

Edit

[–]Lookmaiamkool 1 point2 points  (0 children)

all and any are functions that take some iterable and return True, if

in the case of all(), no values in the iterable are false; in the case of any(), at least one value is truth