Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calcular_promedio(valor, *otros):
- return (valor + sum(otros)) / (1 + len(otros))
- print(calcular_promedio(2, 3))
- print(calcular_promedio(2, 3, 5, 7))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement