6/9 please help


#1

What am I doing incorrect
def get_average(student):
homework=average(student[homework])
quizzes=average(student[quizzes])
tests=average(student[tests])
return homework*0.1+quizzes*0.3+tests*0.6

thanks


#2

Hi.
You forgot quotes - ''
Like:
homework=average(student['homework'])


#3

Try This :smiley:

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"])