bl00dt3ars

05. Average Number

Oct 18th, 2020 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. n = int(input())
  2. total_sum = 0
  3.  
  4. for i in range(1, n + 1):
  5.     number = int(input())
  6.     total_sum += number
  7.  
  8. print(f"{total_sum / n:.2f}")
Add Comment
Please, Sign In to add comment