Question: write a function to calculate average_of_max_scores which takes 2D list where each row has 2 entries: a student username and a score. Allowed to make
write a function to calculate average_of_max_scores which takes 2D list where each row has 2 entries: a student username and a score. Allowed to make multiple submissions, so there can be multiple rows with the same username.
for example input
[["alice", 70], ["bob", 70], ["alice", 80], ["charlie", 90]] so the average score should be 80
Step by Step Solution
There are 3 Steps involved in it
Calculate the average of the maximum scores for each student in a 2D list using Python Heres a funct... View full answer
Get step-by-step solutions from verified subject matter experts
