5. Its okay to be average


#1

The code works, but its not letting me proceed. Am I missing something here?


#2

This is what I did:

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

#3

That worked. I guess the parenthesis in "print (average)" was causing it to fail.


#4

No problem
:sunglasses:
Happy to help


#5

Hi,
compute_average() was causing to fail as the instructions requested average()


#6

I just did the same but the results are not appearing in the console, did they for you?


#7

Did you

print

?


#8

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