Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. name = "John"
  2. age = 23
  3.  
  4. if name == "John" and age == 23:
  5. print("Your name is John, and you are also 23 years old.")
  6.  
  7. if name == "Rick":
  8. print("Your name is either John or Rick.")
  9.  
  10. if name == "John" or name == "Rick":
  11. print("Your name is either John or Rick.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement