I was seeing similar errors, but was unable to spot my error in the forums. Can someone help? I am getting that get_class_average([alice,lloyd]) returned 91.15 instead of 85.85 as expected.

def average(numbers):

total = sum(numbers)

total = float(total)

total = total/len(numbers)

return total

student = [lloyd, alice, tyler]

def get_average(student):

homework = average(student[“homework”])

quizzes = average(student[“quizzes”])

tests = average(student[“tests”])

avg = .1*homework + .3*quizzes + .6*tests

return avg

def get_letter_grade(score) :

if score >= 90 :

return "A"

elif score >= 80 :

return "B"

elif score >= 70 :

return "C"

elif score >= 60 :

return "D"

else :

return “F”

def get_class_average(class_list) :

results = []

x=0

for x in range(len(class_list)) :

student_avg = get_average(class_list[x])

results.append(student_avg)

return average(results)