# 6. Just Weight And See

#1

Don't worry about the code.It's correct.What i can't understand is why in the example we multiply the "apples" with the bigger weight and "bananas" with the smaller and why int the exercise we do the exact opposite.Help?

``Replace this line with your code.``

#2

it just weight , if you are a teacher you will give the bigger weight to tests and smaller weight to homework .. , another teacher can give the same weight to all ....

#3

So it's not that relevant

#4

Yes ,for us here in codecademy !

#5

Ok.I just got confused.I even asked my dad(mathematician)and he didn't know.So i can find the average however i want right?

#6

yes , but here you have to do what codecademy tell you !!

#7

Ok.Thank you a lot man

#8

help please! it keeps giving me error!

File "python", line 28
return 0.1 * average(student["homework"]) + \ 0.3 * average(student["quizzes"]) + \ 0.6 * average(student["tests"])
^
SyntaxError: unexpected character after line continuation character

def get_average(student):
homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])
return 0.1 * average(student["homework"]) + \ 0.3 * average(student["quizzes"]) + \ 0.6 * average(student["tests"])