Skip to content
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

Open
Jerick97 opened this issue Aug 16, 2022 · 0 comments
Open

Solución Reto #33 Python #635

Jerick97 opened this issue Aug 16, 2022 · 0 comments

Comments

@Jerick97
Copy link

Jerick97 commented Aug 16, 2022

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 : ")))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant