Oops, try again. total([0, 3, 6]) returned 3 instead of 9
I honestly thought the code would work. I assume that the variable x represents all indexes in numbers but if the error code is saying it only returns 3, then x either isn't adding all the indexes together or does not represent all of them.
n = [3, 5, 7] def total(numbers): result = 0 for x in range(0, len(numbers)): result = result + x return result