Created
July 29, 2021 22:49
-
-
Save OmgCopito95/d8943ad12285acb7eedd04e5dc36f3dd to your computer and use it in GitHub Desktop.
Detecta el signo del zodiaco ingresando dia y mes de nacimiento.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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