Part of the Whole——the code got wrong


what happen???I m confused

def get_class_average(students):
results = []
for student in students:
return average(rusults)

and it reminds me of “get_class_average([alice]) resulted in an error: global name ‘rusults’ is not defined”


Check your spellings properly.
Since you’ve defined results and not rusults, the code will show an error.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.