https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/4

Hi,

I get the following error message when trying to run my code.

Oops, try again. The alice dictionary seems to be missing, it should contain: {'quizzes': [82.0, 83.0, 91.0], 'tests': [89.0, 97.0], 'name': 'Alice', 'homework': [100.0, 92.0, 98.0, 100.0]}

I haven't changed the Alice dictionary and it appears to be intact. If I reset the code I don't get this error but as soon as I start to define get_class_average it appears.

I've even tried this in a different browser as I thought it could be a caching issue or something.

Any help would be appreciated, thanks.

```
Lloyd = {
"name":"Lloyd",
"homework": [ 90, 97, 75, 92],
"quizzes": [88, 40, 94],
"tests": [75, 90]
}
Alice = {
"name":"Alice",
"homework": [100,92,98,100],
"quizzes": [82,83,91],
"tests": [89,97]
}
Tyler = {
"name":"Tyler",
"homework": [0,87,75,22],
"quizzes": [0,75,78],
"tests": [100,100]
}
students = [Lloyd, Alice, Tyler]
def average(item):
return sum(item) / len(item)
def getAverage(item):
return average(item['homework'])*.1 + average(item['quizzes'])*.3 + average(item['tests'])*.6
def getLetterGrade(score):
score = round(score)
if score >= 90:
return "A"
if score >= 80 and score < 90:
return "B"
if score >= 70 and score < 80:
return "C"
if score >= 60 and score < 70:
return "D"
if score < 60:
return "F"
print getLetterGrade(getAverage(Lloyd))
def get_class_average(students):
results = []
for student in students:
results.append(student)
return average(results)
```