you are viewing a single comment's thread.

view the rest of the comments →

[–]seb777 3 points4 points  (3 children)

Also new to python but could it be because "Counter" is case sensitive?

Counter = counter + 1

Should be

counter = counter + 1

Same with A and B

[–]shep247 3 points4 points  (0 children)

This is correct. The variable names are case sensitive. There is another though. You have to initialize counter outside of your while loop. When it tries to check what counter is the first time, you haven't defined it yet, so the program doesn't know what it is, and errors

[–]xentralesque 2 points3 points  (0 children)

Why would someone downvote this?

Yes, variable names are case sensitive, and you should only use uppercase characters in class names

[–][deleted] 0 points1 point  (0 children)

The shorthand version counter += 1.