Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. print "dame la edad:"
  2. edad = int(input(""))
  3. #edad= input()
  4. #edad= int(edad)
  5.  
  6. if edad >= 0 and edad < 18:
  7. print "Eres un niño"
  8.  
  9. elif edad < 0:
  10. print "No numeros negativos"
  11.  
  12. elif edad >= 18 and edad < 27:
  13. print "Eres un joven"
  14.  
  15. elif edad >= 27 and edad < 60:
  16. print "Eres un adulto"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement