Can someone explain this code step by step?


def get_class_average(class_list):
results = []
for student in class_list:
student_avg = get_average(student)
return average(results)

I get lost after for student in class_list:

Thank you!


Arguably if you know what each thing there does you wouldn’t need anything explained to you
If you don’t know any of it, then I’d say go back and do it again
If something’s simply not explained or otherwise eludes you, then ask about that

It’s too easy to ask “explain this to me”. Makes me think 75% of what I’d say is going to be wasted. There’s no telling what you’re missing unless you say what that is


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