# 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...