Jun-22-2017, 10:16 AM
Hello everybody, I am new to Python and on this forum.
Thank you for this forum.
I don't understand why :
Thank you for this forum.
I don't understand why :
TRUE = 1
FALSE = 0
test_input = TRUE
choice = str(input("Y to confirm / N to exit: "))It's all the time FALSE:if (choice != 'Y') or (choice != 'N'): test_input = FALSEand in this manner it works:
if (choice == 'Y') or (choice == 'N'): test_input = TRUE else: test_input = FALSEThank you for your answers
