Print those garde?


#1

Oops, try again. It looks like your function did not print the grade: 100. showing this type of error help me


#2

grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades):
for i in grades:
print(i)
print_grades(grades)

this is the ans, if any of you are stuck..

hope i helped someone..mostly i take help..

;p


#3

it's giving me the same error, I think the program is just being finicky about the code.


#4

I've got the same error - "Oops, try again. It looks like your function did not print the grade: 100."
(The code run correct in a separate Python console. )


#5

you guys need this statement
print_grades(grades) to execute the function


#6

The "print_grades(grades)" has no tab. If it is tabbed to be with the "for" statement, it won't work


#7

Thank you so much. Now I'll never forget to check my tabbing