Kizspy.me
The Student class has 3 attributes: name, major, and score (an integer). This
class is already provided and you do not need to modify it. The MyList class is
a singly linked list of Student objects. Complete the following methods as
described below:

def fl(self, name, major, score)
o If the name contains the letter "Z", or the major starts with "X", or if
score <0 or score > 100, do nothing.
o Otherwise, add a new Student to the end of the list.
Output in this case like that:
OUTPUT
(Leo, CS, 85) (Eli, ZE, 40) (Sam, M, 67) (Ben, SE, 58) (Mia, IS, 42) (Tom,
AI, 100) (Jay, BA, 31) (Ann, CH, 79) (Joe, BI, 50) (Ali, EC, 0) (Ray, HX,
81) (Ada, PZ, 25)
Zoom

def f2(self, studentZ, x) - Given a Student object (Sam, AB, 70), insert it
right after the third student whose score < x (x=50). Output in this
case like that
OUTPUT
(Leo, CS, 85) (Sam, M, 67) (Ben, SE, 58) (Mia, IS, 42) (Tom, AI, 100) (Jay,
BA, 31) (Ted, PH, 64) (Joe, BI, 50) (Ali, EC, 0) (Bob, PE, 30) (Ray, HX,
81) (Ada, PZ, 25)
(Leo, CS, 85) (Sam, M, 67) (Ben, SE, 58) (Mia, IS, 42) (Tom, AI, 100) (Jay,
+100%
Close