Ok my problem is that there is mentioned that you can use either of the 2 methods in this exercise, but when i use the method 2 i get an error that is "Oops, try again. total([0, 3, 6]) returned 3 instead of 9". But when i use method 1 it goes all well and doesnt show any error, why is that?

Code 1:(method 2)

```
n = [3, 5, 7]
def total(numbers):
result = 0
for number in range(len(numbers)):
result = number + result
return result
print total(n)
```

Output 1:

3

Code 2:(method 1)

```
n = [3, 5, 7]
def total(numbers):
result = 0
for number in numbers:
result = number + result
return result
print total(n)
```

Output 2:

15