I'm not sure what's wrong with this and haven't found an answer that applies to my situation; from other post. I have tried float in many areas, but my result = 1.0 should be handling this anyways.
The average returned is 80.5, so I really can't put my finger on the bug here. Thanks for your help.
"You did not print the correct average." --error
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def grades_sum(scores): result=1.0 for s in scores: result += s return result def grades_average(grades): average = (grades_sum(grades)) / len(grades) return average print grades_average(grades)