Problem 11.5


I'm not sure why my code does not run for this excercise, instead I'm having this error "Oops, try again. average([3, 0]) resulted in an error: global name 'lens' is not defined"

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


Hello @javablaster46190,

In the second line of your average function, you have set total to the value of itself divided by lens(numbers) change that to len(), and you should be good to go!