https://www.codecademy.com/courses/python-beginner-nzzVa/3/4?curriculum_id=4f89dab3d788890003000096

total([0, 3, 6]) resulted in an error: local variable 'result' referenced before assignment

I expect the program to add up all the elements of an arbitrary list and returns that count.

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