fork download
  1. N=int(input())
  2. suma=0
  3. for i in range (N):
  4. x=int(input())
  5. suma+=x
  6. srednia=suma/N
  7. print(srednia)
Success #stdin #stdout 0.11s 14112KB
stdin
4
0
1
2
3
stdout
1.5