<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
Hi, Im not passing even tough I get the results
Im supposed to get ( I tested the input which the console returns me
with a error message). I dont find a mistake… Any suggestions?
<Below this line, add a link to the EXACT exercise that you are stuck at.>
Oops, try again.
grades_variance([8, 5, 6, 8, 0, 5, 6, 3, 7]) returned 5644.2473701512 instead of the expected: 5.7777777778
<What do you expect to happen instead?>
```pythongrades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades):
for grade in grades:
print grade
def grades_sum(grades):
total = 0
for grade in grades:
total += grade
return total
def grades_average(grades):
sum_of_grades = grades_sum(grades)
durchschnitt = sum_of_grades / float(len(grades))
return durchschnitt
def grades_variance(scores):
variance = 0
average = grades_average(grades)
for score in scores:
variance += (average - score) ** 2
total_variance = variance/float(len(scores))
return total_variance
print grades_variance(grades)
<do not remove the three backticks above>