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

Oops, try again. get_average(alice) raised the following error: local variable 'average' referenced before assignment

I don't really know what's happening here, pls HELP!

```
def average(numbers):
total = sum(numbers)
total = float(total)
total = total / len(numbers)
return total
def get_average(student):
homework = average(student["homework"])
quizzes = average(student["quizzes"])
tests = average(student["tests"])
homework = homework * 10
quizzes = quizzes * 30
tests = tests * 60
average = homework + quizzes + tests
return average
```