The code I have is correct but I would really appreciate someone explaining to me how the for loops works. What I do not understand is how student in students iterates through each students assigned dictionary list values when students was never assigned any values as a variable.
I suspect it has something to do with the concept of passing arguments but I cannot find information on this that gets the point across.
Many thanks in advance.
def get_class_average(students): results =  for student in students: results.append(get_average(student)) return(average(results))