edad = int(input("Ingrese la edad del cliente: "))
horas = int(input("Ingrese la cantidad de horas que jugará: "))
if edad < 8:
if horas <= 1:
precio = 0
else:
precio = (horas - 1) * 500
elif edad <= 17:
precio = horas * 2000
else:
precio = horas * 3000
print(f"El precio a pagar es: ${precio} pesos")
To embed this project on your website, copy the following code and paste it into your website's HTML: