-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solución Reto #33 Python #635
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CICLO SEXAGENARIO CHINO
https://www.travelchinaguide.com/intro/astrology/60year-cycle.htm
Zodiac_Sign = ['Rata', 'Buey', 'Tigre', 'Conejo', 'Dragón', 'Serpiente', 'Caballo', 'Oveja', 'Mono', 'Gallo', 'Perro', 'Cerdo']
Wu_Xing = ['Madera', 'Fuego', 'Tierra', 'Metal', 'Agua']
Elementos = [element for element in Wu_Xing for i in range(2)] # Cada elemento se repite dos años seguidos
def Calcular_Ciclo_SexGen(year):
if year >= 1924:
Year = (year - 1924) % 60
Signo = Zodiac_Sign[Year % 12]
Element = Elementos[Year % 10]
return print(f"Signo {Signo} , Elemento {Element}")
return print("El año no está dentro del Calendario Jia Zi")
Calcular_Ciclo_SexGen(int(input("Ingrese Año : ")))
The text was updated successfully, but these errors were encountered: