Spocoman

04. Train The Trainers

Dec 30th, 2021 (edited)
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. score_num = int(input())
  2. counter = 0
  3. total = 0
  4.  
  5. while True:
  6.     presentation = input()
  7.     if presentation == 'Finish':
  8.         break
  9.     grade = 0
  10.     for i in range(score_num):
  11.         grade += float(input())
  12.     print(f'{presentation} - {grade / score_num:.2f}.')
  13.     counter += score_num
  14.     total += grade
  15.  
  16. print(f'Student\'s final assessment is {total / counter:.2f}.')
  17.  
Add Comment
Please, Sign In to add comment