Using an increment counter in a 'for loop' I can't seem to print the right value


#1

I can't seem to print the 8 values of "A" and "B" that I need. Can you should me where my syntax is wrong?


#2

@fibra73,

Your IF-condition should look like

grade == "A" or grade == "B"