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
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
Get step-by-step solutions from verified subject matter experts
