15: method 1 and method 2 error


#1



same error for method 1 and 2.
unsure of the issue.


n = [3, 5, 7]

def total(numbers):
    result = 0
    for i in range(len(numbers)):
        result += numbers(i)
    return result

print total(n)

Traceback (most recent call last):
  File "python", line 9, in <module>
  File "python", line 6, in total
TypeError: 'list' object is not callable


#2

It should be result += numbers[i]