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

1 Expert Approved Answer
Step: 1 Unlock

Calculate the average of the maximum scores for each student in a 2D list using Python Heres a funct... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!