This is the instruction

On line 3, define a function, grades_sum, that does the following:

Takes in a list of scores, scores

Computes the sum of the scores

Returns the computed sum.

Call the newly created grades_sum function with the list of grades and print the result.

This is my code:

```
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def grades_sum(scores):
total = 0
for grade in grades:
total += grade
return total
print total
print grades_sum(grades)
```

This is the error message am getting:

It looks like your grades_sum function doesnâ€™t properly compute the sum of all the grades! It returned 100 instead of 363 for grades_sum([32, 13, 40, 98, 43, 44, 85, 8])