Hi
Sorry for that basic question, but I do not understand why the answer is always "no" when using simple quote between Y: where I'm missing something?
Thanks
Paul
Sorry for that basic question, but I do not understand why the answer is always "no" when using simple quote between Y: where I'm missing something?
Thanks
Paul
MyList = ["ANSWER='Y'"]
if ("ANSWER=Y" or "ANSWER='Y'" or "ANSWER=\'Y\'") in MyList:
print("Answer = Yes")
else:
print("Answer = No")Output:Answer = No
