Question: Python question! Please leave COMMENTS on your code so others will know whats going on. Show your code running. Thanks for all your help! Exercise

Python question! Please leave COMMENTS on your code so others will know whats going on. Show your code running. Thanks for all your help!
Python question! Please leave COMMENTS on your code so others will know

Exercise 1 Write a function "finalGrade" that takes a list "classList" which contains a sublist for each student. Each sublist contains three grades; attendance, exam grade, and homework grade. You needt return a tuple that contains the average of attendance, average of exams, and average of homeworks for the whole class. Sample Input classList = [[20,80,90], [10,60,40), [17, 77,56], [21, 99, 99]] Sample Output (17,79,71.25) *Hints: The class has 4 students average attendance = (20+10+17421)/4 = 17 average exams = (80+60+77+99)/4 = 79 average homeworks (90+40+56+99)/4 = 71.25

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 Databases Questions!