Jan-15-2019, 05:18 PM
I keep getting this error message
please help me
Error:Traceback (most recent call last):
File "U:/Computer Programming/Python/Quiz how.py", line 3, in <module>
if (answer_1 == Flat):
NameError: name 'Flat' is not defined
My Code is 1 2 3 4 5 6 7 8 9 |
score = 0 answer_1 = input ( "What is the shape of the Earth?" ) if (answer_1 = = Flat): print ( "You got it right" ) score = score + 1 print ( "Your Score is:" , score) else : print ( "You are incorrect, The answer was Flat" ) print ( "Your Score is:" , score) |