Exam Statistics 2. Print those grades
I get this error message
Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: invalid syntax (python, line 4) The print statement
This is a simple list comprehension to print out everything. In general, this is a more pythonic way if I'm correct. Why does this not get through, as it will function the same way. I've been using python for awhile and maybe it just isn't what the problem expects.
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def print_grades(grades): [print(x) for x in grades] print_grades(grades).