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