Advertisement
J2112O

If/elif Statements

Aug 9th, 2015
951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1.  
  2. age = raw_input("How old are you? ")
  3.  
  4. if age < 18:
  5.     print("Can't vote yet.")
  6. elif age <= 65:
  7.     print("Still can't retire yet.")
  8. elif age > 65:
  9.     print("Yay can finally retire hopefully.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement