You are viewing a single comment's thread. Return to all comments →
it is not working it is giving me error unsupported operand type for %: list and int.
can any help me?
there compiler is not working correctly, i have run this code in python 2 in my system it is working fine but not in here
You are using grade, which is a list. You have to access the indices in the list using loop like this
for i in grade:
if i >= 38:
if i % 5 == 3:
i += 2
elif i % 5 == 4:
i += 1