fork download
  1. def avg(x):
  2. return sum(x)/len(x)
  3.  
  4. z=avg([1,2,3])
  5. print(z)
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
2.0