Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started