Python 8.11:Student becomes teacher


#1

Hello Friends,I am stuck at the following excercize,

https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096


print get_average(lloyd)

def get_class_average(students):
    results=[]
    for student in students:
         results.append(get_average(students))
    return average(results)
    
      


Replace this line with your code.


Where am I making mistake?


#2

here:

get_average(students)

students is a list, get_average() is designed to calculate the average for a single student, not a list of students


#3

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