<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
the exercise was:
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.
<In what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. It looks like your grades_sum function doesn’t properly compute the sum of all the grades! It returned None instead of 188 for grades_sum([36, 1, 95, 56])
<What do you expect to happen instead?>
to print out the sum, which it did but when it tested my code (as in the error message) it returned none.
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
for i in x:
total= total + i
<do not remove the three backticks above>