ā back to unit
Medium
# breaking it down medium
Grade the Whole Class
Report card day ā the teacher needs every student's average, and the star of the class. š
You get the class as name:score-score-score entries (each student's averages come out whole; one clear winner). Print the best student's name and their average, separated by a space.
Example:
Input: entries = ["mia:80-90-70", "leo:60-80-100", "kai:90-95-85"]
Output: kai 90
The averages are mia=80, leo=80, kai=90 ā kai has the highest.
š” need a hint?
brk-grade-the-class.pyš given lines are locked ā write your code in between
loading...