Skip to content

Instantly share code, notes, and snippets.

@OmgCopito95
Created July 29, 2021 22:49
Show Gist options
  • Save OmgCopito95/d8943ad12285acb7eedd04e5dc36f3dd to your computer and use it in GitHub Desktop.
Save OmgCopito95/d8943ad12285acb7eedd04e5dc36f3dd to your computer and use it in GitHub Desktop.
Detecta el signo del zodiaco ingresando dia y mes de nacimiento.
signo = ("Capricornio", "Acuario", "Piscis", "Aries", "Tauro", "Géminis", "Cáncer", "Leo", "Virgo", "Libra", "Escorpio", "Sagitario")
fechas = (20, 19, 20, 20, 21, 21, 22, 22, 22, 22, 22, 21)
dia=int(input("Día: "))
mes=int(input("Mes: "))
mes=mes-1
if dia>fechas[mes]:
mes=mes+1
if mes==12:
mes=0
print ("Signo: " + signo[mes])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment