def average(numbers):

sum(numbers)

total = 0

total = float(total)

total = float(total) / len(numbers)

return total

Oops, try again. average([3, 0]) returned 0.0 instead of 1.5 as expected.

not sure what im doing wrong

def average(numbers):

sum(numbers)

total = 0

total = float(total)

total = float(total) / len(numbers)

return total

Oops, try again. average([3, 0]) returned 0.0 instead of 1.5 as expected.

not sure what im doing wrong

def average(numbers):

sum(numbers)

total = sum(numbers)

total = float(total)

total = float(total) / len(numbers)

return total

this worked, thank you