Just Weight and See


I'm not really sure where I'm going wrong. I get the errror:
get_average(alice) raised the following error: 'int' object has no attribute 'sum'

My code is as follows:

def get_average(student):

indent preformatted text by 4 spaces`homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])

results = (homework * .1) + (quizzes *.3) + (test * .6)

return results


You're either treating some value incorrectly or you've sent in the wrong value.

Reproduce the error by using the input mentioned in Codecademy's error message, look at what line number you get and use print statements to see what values are used and consider what you do to those values.


use tests*0.6 instead of test *0.6