These are the instructions: Create a function that returns the sum of a list of numbers.
Here is my code:
n = [3, 5, 7] def total(numbers): result = 0 for item in n: result = result + 1 return result
I don't know what I'm missing.
My error message reads:
Oops, try again. total([0, 3, 6]) returned 3 instead of 9