Solución
solution.tsTypeScript
def average(numeros: list[float]) -> float:
# Escribe tu solución aquí
if not numeros:
return 0
return sum(numeros) / len(numeros)
numeros = [1, 2, 3, 4, 5]
resultado = average(numeros)0respuestas