Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yes = "You are "
- no = "You are not "
- name = input("Enter your name: ")
- age = input("Enter your age: ")
- user_answer = input("True or False? ").lower().strip()
- if user_answer == "true":
- yes
- elif user_answer == "false":
- no
- print("Hello " + name + "! You are " + age + " years old and" + user_answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement