How is this code wrong? [Python]


question = raw_input("What is 9x9? ")
if question == 81:
print "Correct"
print “Wrong”

I’m in the 9th grade trying to learn coding and I can’t seem to get this. I have gone to every person that has any idea but they’re too dumb to understand coding.

Please someone answer.



Glad you’re learning to code. You are using the wrong quotation marks here.

to print the string.

This is the right one.

print "Wrong"

Additionally, to get your user to insert 81 as the answer and mark it as correct, you should have 81 as a string here and not a number.

I hope this helps!