I am making code for a quiz. In the quiz, I want to make sure that when a user selects a certain answer, the program would display "true" or "false". How would I make this happen
a=input(" ") ans="" if a==ans: print(True) else: print(False)
Quiz Coding
I am making code for a quiz. In the quiz, I want to make sure that when a user selects a certain answer, the program would display "true" or "false". How would I make this happen
a=input(" ")
ans=""
if a==ans:
print(True)
else:
print(False)