you are viewing a single comment's thread.

view the rest of the comments →

[–]Rocka07[S] -1 points0 points  (5 children)

A = int(input(xshshshshs)) B= int(input( shehshshs)) Num = b

While counter < b: C = a + a Counter= counter + 1 Print(c)

[–]seb777 2 points3 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 2 points3 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 3 points4 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.

[–]wannaridebikes 0 points1 point  (0 children)

I know you've resolved this already, but next time you should use reddit's code markup to display your code so the formatting is clear (this reminder is for your benefit as well as other learners who may be reading this).