Just Weight and See


#1



Just Weight and See


Oops, try again. Make sure you have defined get_average


I don't understand where is a mistake?


Replace this line with your code. 
  def get_average(student):
        homework = (average(student['homework'])) * 0.1
        quizzes = (average(student['quizzes'])) * 0.3
        tests = (average(student['tests'])) * 0.6
    return sum(homework, quizzes, tests)


#2

Consistent indentation is important in Python.

def function():
    # code
    # code
    return

#3

Sum function accepts only 2 arguments
i make use of other variable called total ,and stored the summation of homework, quizzes, tests
and return total,where you have written return sum(homework, quizzes, tests)


#4

This would work if it was a list.

return sum([homework, quizzes, tests])

#6