It's OK to be Average


#1


https://www.codecademy.com/courses/python-beginner-en-qzsCL/1/1?curriculum_id=4f89dab3d788890003000096#

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

I don't understand what I'm doing wrong

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


#2

Never mind, I figured it out.


#3

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