def average(numbers): total = sum(numbers) total = float(total) return(total / len(numbers)) def get_average(student): homework = average(student["homework"]) quizzes = average(student["quizzes"]) tests = average(student["tests"]) return(sum((0.1*homework) + (0.3*quizzes) + (0.6*tests)))
ERROR: Oops, try again. get_average(alice) raised the following error: 'float' object is not iterable
What is the error saying I'm doing wrong?!