Advertisement
Spocoman

05. Average Number

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