Kizspy.me
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,
BA, 31) (Ted, PH, 64) (Joe, BI, 50) (Ali, EC, 0) (Sam, AB, 70) (Bob, PE,
30) (Ray, HX, 81) (Ada, PZ, 25)

def f3(self, x) - Delete the second student with score > x. If no such
student exists, do nothing. Output in this case like that:
OUTPUT
(Leo, CS, 85) (Eli, ZE, 40) (Sam, M, 67) (Ben, SE, 58) (Mia, IS, 42) (Tom,
AL. 100) (Jav. BA. 31) (Ted. PH. 64) (Joe. BX. 50) (Ali. EC. 0) (Bob. PE.
+ 100%
Close