Question: Write a function called C grades(di) that takes a dictionary as an argument. The keys of the dictionary will be strings representing student names and

Write a function called C grades(di) that takes a dictionary as an argument. The keys of the dictionary will be strings representing student names and the values will lists of integers between 0 and 100 inclusive representing student grades. The function should return a new dictionary where the keys are the same as in di and the values are the number of grades each student received where the grade is between 70 and 79 inclusive. For example, if grades = {"Caleb" : [75, 89, 70, 98], "LaToya" : [88, 97, 80, 79], "Jon" : [92, 98, 60, 84]} the function should return {'Caleb': 2, 'LaToya': 1, 'Jon': 0} You should use a nested loop to solve this

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!