This is a typo on Codecademys part right?
They tell us:
Define a function, grades_average, below the grades_sum function that does the following:
_ Has one argument, grades_input, a list_
_ Calls grades_sum with grades_input_
_ Computes the average of the grades by dividing that sum by float(len(grades_input))._
_ Returns the average._
Call the newly created grades_average function with the list of grades and print the result.
When they said Calls grades_sum with grades_input they ment to say Call grades_sum with grades right?
Because I tried calling the function with grades_input and it didnt work!
Then called the function with grades and everything worked!
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def grades_sum(scores): total = 0 for score in scores: total += score return total print grades_sum(grades) def grades_average(grades_input): average = grades_sum(grades_input) / float(len(grades_input)) return average print grades_average(grades)