Hi.
when I run this code in my code editor it returns , but here it returns None, is there a way to fix it that I’m not considering?
def perfect_score(student_info):
"""Create a list that contains the name and grade of the first student to make a perfect score on the exam.
:param student_info: list - of [<student name>, <score>] lists.
:return: list - first `[<student name>, 100]` or `[]` if no student score of 100 is found.
"""
for info in student_info:
if info[1] >= 100:
return info
else:
return list()
Test Failure
AssertionError: None != : Called perfect_score(). The function returned None, but the tests expected for the first “perfect” score.