Question: Python [5 pts] Write the function studentGrades(gradeList) that takes a nested list with the following structure: First list is always a descriptive header. -Subsequent lists
Python![Python [5 pts] Write the function studentGrades(gradeList) that takes a nested](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f31b4b92ee8_26666f31b4af06d5.jpg)
[5 pts] Write the function studentGrades(gradeList) that takes a nested list with the following structure: First list is always a descriptive header. -Subsequent lists hold all the data For lists that hold data, the first element is always a string, the rest of the elements are numeric values. Each list (except for the first one) represents the grades of the student and the first element of each list contains the name of the student. grades - [ [ ' student', 'Quiz 1', 'Quiz 2', 'Quiz 3'],# List 1, header ["John', 100, 90, 80], [ 'McVay', 88, 99, 111], ['Rita', 45, 56, 67], ['Ketan', 59, 61, 671, 'Saranya', 73, 79, 831, [ 'Min', 89, 97, 101]] and returns ONE list with the average score for each student in INTEGER format. Hint: The method sum adds all the numeric elements of a list (sum([1,2,8.1]) returns 11.1). grades [ ["Student', "Quiz 1', "Quiz 2", "Quiz 3'], ["John', 100, 90, 80], 'McVay', 88, 99, 111], ['Rita', 45, 56, 67], [ 'Ketan', 59, 61, 67], 100 + 90 80 270 270/3 - 90 Saranya', 73, 79, 831 [ 'Min', 89, 97, 101]] >>>studentGrades (grades) [90,99,56, 62, 78,95]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
