fork(2) download
  1. def media(*lista):
  2. soma = 0
  3. for i in lista:
  4. soma += i
  5. return soma // len(lista)
  6. lista = [7, 8, 9]
  7. print(media(*lista))
  8.  
  9. #https://pt.stackoverflow.com/q/361203/101
Success #stdin #stdout 0.01s 27656KB
stdin
Standard input is empty
stdout
8