Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. x = [True, True, False]
  2. if any(x):
  3. print("At least one True")
  4. if all(x):
  5. print("Not one False")
  6. if any(x) and not all(x):
  7. print("At least one True and one False")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement