Computing the average (again). What's wrong?


#1

grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def grades_sum(grades):
    total = 0
    for i in grades:
        total = total + i
    print total
    return total
        
    
grades_sum(grades)
    
def grades_average(grades):
    sums = grades_sum(grades)
    x = sums / float(len(grades))
    return x
    print x
    
    
grades_average(grades)

#2

can you provide the exercise url?


#3

What error message is this exercise giving you @ishchuk? If you provide more details, I'll be happy to help.


#5