Question: class Student: def __init__(self, name, id_num, quizzes, exams): self._name = name self._id_num = id_num self._quizzes = quizzes self._exams = exams def grade(self): average_quiz_score = sum(self._quizzes)

 class Student: def __init__(self, name, id_num, quizzes, exams): self._name = name

class Student: def __init__(self, name, id_num, quizzes, exams): self._name = name self._id_num = id_num self._quizzes = quizzes self._exams = exams   def grade(self): average_quiz_score = sum(self._quizzes) / len(self._quizzes) average_exam_score = sum(self._exams) / len(self._exams) course_grade = 0.25 * average_quiz_score + 0.75 * average_exam_score return course_grade 
def find_best(students): return None 
if __name__ == '__main__': 
 s1 = Student('Jane Smith', 110837363, [90, 88, 82, 99], [80, 77]) s2 = Student('Mike Jones', 110284928, [78, 91, 50], [100, 91, 92]) s3 = Student('Abe Lincoln', 110293822, [88], [94, 78, 84, 91]) s4 = Student('Felix D. Cat', 110728365, [38, 88, 91, 77, 81], [95]) s5 = Student('Alan Turing', 110101100, [92, 99], [90, 90, 90]) 
 print('Testing find_best() for [s1, s2, s3, s4, s5]: ' + str(find_best([s1, s2, s3, s4, s5]))) print('Testing find_best() for [s2, s3, s5]: ' + str(find_best([s2, s3, s5]))) print('Testing find_best() for [s1, s3]: ' + str(find_best([s1, s3]))) 

Python Write a function find best that takes a list of Student objects and returns a list of the names of all students who scored 90 or higher on all of their exams. If no student scored 90 or higher on all of their exams, the function returns an empty list Examples: Function Call Return Value find best (ls1, S2, s3, s 4, s51) Mike Jones Felix D Cat Alan Turing' find best [s2, S 3, S51) If 'Mike Jones', 'Alan Turing' find best 81, s31)

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!