x = [lloyd, alice, tyler] def get_class_average(students): results =  for student in x: a = get_average(student) results.append(a) return average(results) print average(results)
i would loop over the function parameter here:
for student in x:
this way, you can loop over different lists by passing the list as argument in the function call:
also, the exercise might require you to name the list from
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.