The array n contains the numbers 3, 5 and 7. We are supposed to use a function that loops through the array and adds the items together. They equal 15. However the assignment says they should equal 9 and shows an array in the error message that has 0, 3 and 6.
It should return as completed.
n = [3, 5, 7] def total(numbers): result = 0 for i in range(len(numbers)): result += n[i] return result print total(n)