Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. yes = "You are "
  2. no = "You are not "
  3.  
  4. name = input("Enter your name: ")
  5. age = input("Enter your age: ")
  6. user_answer = input("True or False? ").lower().strip()
  7. if user_answer == "true":
  8. yes
  9.  
  10. elif user_answer == "false":
  11. no
  12. print("Hello " + name + "! You are " + age + " years old and" + user_answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement