Question: 2) Write a function called median score(di) that takes a dictionary as an argument. the keys of the dictionary are strings representing student names and

2) Write a function called median score(di) that takes a dictionary as an argument. the keys of the dictionary are strings representing student names and the values are lists of integers between 0 and 100 inclusive representing grades. The function should return a new dictionary where the keys are the same as in di and the values are the median of the grades for each student. For example, if grades = {"Caleb" : [75, 89, 92, 66], "LaToya" : [92, 97, 90, 97], "Jon" : [92, 98, 60, 84], "Mike" : [90, 92, 97, 91]} 1the function should return {'Caleb': 82.0, 'LaToya': 94.5, 'Jon': 88.0, 'Mike': 91.5} You will need to import the median function from the statistics library

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Accounting Questions!