It's Okay to be Average


I don't know what I'm doing wrong. The error message says "Oops, try again. average([3,0]} returned None instead of 1.5 as expected"

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


You're not returning anything. Only printing.


Oh, I get it. Thanks!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.