Keep getting the error message: Oops, try again. total([0, 3, 6]) returned 3 instead of 9
I think my problem is that i'm setting the function to terminate at len(numbers) and so it's not including the last number in the list, 6. I have no idea how to fix this though.
I have quadruple checked my indentation but it could also be this.
Any help would be greatly appreciated so I can advance!
def total(numbers): result=0 for number in range(0,len(numbers)): result+=number return result