Print those grades!


#1

grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]

def print_grades(grades):

for grade in grades:
    print grade
print print_grades(gardes)

Oops, try again. Did you create a function called print_grades?...Help!
Kindly write the full code then explain...


#2

Is it maybe because you spelt grades wrong? You wrote "gardes" which should be grades.

(:


#3

The function does the printing, so we don't have to print the return value (which will be, None).

print_grades(grades)

#4

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