python - Simple NameError, does not make any sense? -
file "f:\samuel's python.py", line 86, in code userscore2 == questionscorrect nameerror: name 'userscore2' not defined i confused because first time in code 'userscore2' accessed , should define it.
i wondering if there missing relatively new python , if how can fix it. have tested same code different variables e.g.
number1 == number3 and received same error.
assignment =. comparison ==. can assign new variables can't compare them. change code to:
userscore2 = questionscorrect
Comments
Post a Comment