Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def calcular_promedio(valor, *otros):
  2.     return (valor + sum(otros)) / (1 + len(otros))
  3.  
  4.  
  5. print(calcular_promedio(2, 3))
  6. print(calcular_promedio(2, 3, 5, 7))