Sichanov

train the trainers

May 21st, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. number_of_jury = int(input())
  2. number_of_presentation = 0
  3. total_grades_all_presentation = 0
  4. grade_count = 0
  5. command = input()
  6. while command != 'Finish':
  7.     presentation = command
  8.     number_of_presentation += 1
  9.     total_grades = 0
  10.     for each_jury in range(number_of_jury):
  11.         grade = float(input())
  12.         total_grades += grade
  13.         grade_count += 1
  14.     average = total_grades / number_of_jury
  15.     print(f"{presentation} - {average:.2f}.")
  16.     total_grades_all_presentation += total_grades
  17.     command = input()
  18.  
  19. average_all_presentation = total_grades_all_presentation / grade_count
  20. print(f"Student's final assessment is {average_all_presentation:.2f}.")
  21.  
Advertisement
Add Comment
Please, Sign In to add comment