I already figured out the answer, but I have a quick question on why a certain code doesn't work.

def get_average(student):

homework = average(student["homework"])

quizzes = average(student["quizzes"])

tests = average(student["tests"])

return sum(homework * .1,quizzes * .3,tests * .6)

"Oops, try again. get_average(alice) raised the following error: sum expected at most 2 arguments, got 3" is the error I get from the code above. in that code, I use sum().

def get_average(student):

homework = average(student["homework"])

quizzes = average(student["quizzes"])

tests = average(student["tests"])

return homework * .1 + quizzes * .3 + tests * .6

In this code I just add them and it works. Why can't I use sum()?```