Your question is Highest Scoring Student. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Dropbox Paper may need to identify the highest-scoring student in a grading workflow. Implement a GradeBook class with two methods, then write a function that returns the student with the highest average score.
add_score(student, score) records one integer score for a student.average_score(student) returns that student's average as a number.highest_scoring_student(records) accepts all grade records, uses the gradebook, and returns the student whose average is greatest. If multiple students have the same average, return the lexicographically smallest student name. Return None when records is empty.records is a list of two-element records, where each record is [student: str, score: int].0 through 100.None for an empty input.def highest_scoring_student(records):