Hi everyone, I'm stuck at the section "Just weight and see".

The error I get is the following

Oops, try again. get_average(alice) raised the following error: 'float' object is not iterable

Please, would anyone with the solution be so kind to help me out with this?

The code I've done is the following:

def get_average(student):

homework=average(student["homework"])

quizzes=average(student["quizzes"])

tests=average(student["tests"])

homework=0.1*homework

quizzes=0.3*quizzes

test=0.6*tests

return sum(homework+quizzes+tests)

Thanks in advance.