Traceback (most recent call last):
File "python", line 9, in
TypeError: 'function' object has no attribute 'getitem'
I have no idea what went wrong with my code. Plz help me
n = [3, 5, 7] def total(numbers): result = 0 for i in range(len(numbers)): result = result + numbers(i) return result print total[n]