Just Weight and See


#1

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


#2

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.


#3

use tests*0.6 instead of test *0.6