Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. x = True
  2. y = False
  3.  
  4. # AND operation
  5. x_and_y = x and y
  6. print(x_and_y)
  7. #Output: False
  8.  
  9. # OR operation
  10. x_or_y = x or y
  11. print(x_or_y)
  12. #Output: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement