5. It's Okay to be Average. Stucked



Oops, try again. average seems to be missing.

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

Help please, i don't know what i'm doing wrong


Don't need that line. You state it later in the variable total.


you misspelled average


I think your was using too many total variable. Just need one for store the result of sum(numbers) and your need to create a new variable to store the result of average.
here is my code and it work:

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

Sorry for my bad english.


There is the same error: Oops, try again. average seems to be missing.


OMG ty everyone for help
i get it
there is avarage instead of average


^ i said that you misspelled it? :stuck_out_tongue:


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