Just Weight and See - get_average(alice) returned 86.55 instead of the expected 91.15


#1

https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/2?curriculum_id=4f89dab3d788890003000096

Hello everyone! Need help! Apparently, the code is correct!

However I get the following error: > Oops, try again. get_average(alice) returned 86.55 instead of the expected 91.15

My code:

def get_average(student):
    homework = average(student["homework"])
    quizzes = average(student["quizzes"])
    tests = average(student["quizzes"])
    weighted = homework * .1 + quizzes * .3 + tests * .6
    return weighted

Can you help me, please? Thank you!


#2

your tests variable contains the average for the quizzes


#3

:fearful:

@stetim94 Thank you! Sorry for the gaffe! :sweat:


#4