Its okay to be average


#1

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


#2

the sum of the numbers should be stored in total


#3

so instead of total = 0 it is total = sum(numbers)


#4

def average(numbers):
sum(numbers)
total = sum(numbers)
total = float(total)
total = float(total) / len(numbers)
return total

this worked, thank you


#5

this line:

sum(numbers)

is now not doing anything, you can remove it


#6