Skip to content

Instantly share code, notes, and snippets.

@CynthiaMaldonadoR
Created September 10, 2019 23:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save CynthiaMaldonadoR/93d7d3d029c74a6382b08be1784f13cc to your computer and use it in GitHub Desktop.
Programa edad
#encoding: utf-8
print "Ingrese su edad: "
edad=int(input(""))
if edad>=0 and edad<18:
print"Eres un niño"
elif edad<0:
print "No pueden ser numeros negativos"
elif edad>=18 and edad<27:
print "Eres un joven"
elif edad>=27 and edad<60:
print "Eres un adulto"
else: print'Eres de la tercera edad'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment