• + 3 comments

    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
        print (i)