I am on the "It's Okay to Be Average" portion of the section. This is the code that worked:

def average(numbers):

total = float(sum(numbers))

avg = total/len(numbers)

return avg

However, I initially did float(total) = sum(numbers)

Why doesnt this work? It gave me a general error in the line.