I'm pretty sure this is right, even if I don't completely understand the
range function yet.
n = [3, 5, 7] def returnSum(numbers): result = 0 for i in numbers: result += numbers(i) return result def total(numbers): elements = 0 for i in range(len(numbers)): elements += i return elements
I get an error in the "total" function. Help?