So I know that this is the right answer

def average(numbers):

total = float(sum(numbers))

result = total / float(len(numbers))

return result

But why doesn't this work? I know it's one extra step but I'm curious as to why it doesn't work.

def average(numbers):

total = sum(numbers)

total = float(total)

total / float(len(numbers))

return total