I keep having the same problem and I can't seem to fix it...
I've tried to rewrite my whole code, I went back to check former exercises and i spent like 20 minutes staring at it wondering what little capital or bracket i could have forgotten but I just don't see it with this one.
Here is my code:
students = [lloyd, alice, tyler] def get_average(dictionary): for student in students: homework = average(student["homework"]) quizzes = average(student["quizzes"]) tests = average(student["tests"]) return (0.1 * homework) + (0.3 * quizzes) + (0.6 * tests) print get_average(alice)
Please help, this gives me "Oops, try again. get_average(alice) returned 79.9 instead of the expected 91.15" every time !