Whats wrong?


#1

numbers = [3, 5, 7]

def total(numbers):
result = 0
for number in numbers:
number += result

return result

#2

Just have things turned around a little. Try this, instead:

def total(numbers):
    result = 0
    for number in numbers:
        result += number
    return result

#3

Thank you, it was very usful