Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- name = input()
- total_sum = 0
- count = 0
- while name != "Finish":
- count += 1
- average_sum = 0
- for i in range(0, n):
- average_sum += float(input())
- average_sum /= n
- total_sum += average_sum
- print(f"{name} - {average_sum:.2f}.")
- name = input()
- print(f"Student's final assessment is {total_sum / count:.2f}.")
Advertisement
Add Comment
Please, Sign In to add comment