Just Weight and See (Wrong Average)


#1


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

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


#2

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


#3

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