Just Weight and See:


#1



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


#2

what is your question? Do you get an error message? Please improve the topic by providing more then just the code


#3

return (homework * .1) + (quizzes * .3) + (tests *.6)
insted of that you should return this : return (homework * 0.1) + (quizzes * 0.3) + (tests * 0.6)


#4

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