Just Weight and See (Wrong Average)



get_average(alice) returned 88.85 instead of the expected 91.15

I expect it to print out the correct average>

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


the test should be 60% of the grade, in your case, its 30%


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.