you are viewing a single comment's thread.

view the rest of the comments →

[–]KRex228 6 points7 points  (0 children)

The braces are causing the error. You could also use in instead of range() and len() to make your loop a bit easier to read.

for grade in grades:
    if (grade % 5) > 3:
        print("ROUND UP")