Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | None | 0 0
  1. name = input("Good morning, What is your name? ")
  2. print("Hello {}, I believe you would like to join us on one of our 18-30 holidays".format(name))
  3.  
  4. age = int(input("How old are you {} ? ".format(name)))
  5.  
  6. if not (age < 18) and not (age > 30):
  7.         print("Pack your bags {} you are going on the 18-30 holiday of a lifetime".format(name))
  8.  
  9. elif age < 18:
  10.         print("Im so sorry {} ".format(name) + "Please come back in {} years".format(18 - age))
  11. else:
  12.     print("Im so sorry {} ".format(name) + "your 18-30 holiday era ended {} years ago".format(30 - age))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement