ProuxFather

Still helping a guy on Reddit

Feb 10th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. age = int(input("How many years old are you?"))
  2.  
  3. if age <= 1:
  4.     lifestage = "infant"
  5. elif age > 1 and age < 13:
  6.     lifestage = "child"
  7. elif age >= 13 and age < 20:
  8.     lifestage = "teenager"
  9. elif age >= 20:
  10.     lifestage = "adult"
  11. print('You are a(n):', lifestage)
  12. input("\n\nPress the enter key to exit.")
Add Comment
Please, Sign In to add comment