Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = [True, True, False]
- if any(x):
- print("At least one True")
- if all(x):
- print("Not one False")
- if any(x) and not all(x):
- print("At least one True and one False")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement