I have a simple input validation code asking the user for either ACT or SAT.
test=input("Are you taking SAT or ACT?..")
while test!=("SAT" or "ACT"):
print("error")
test=input("Are you taking SAT or ACT?..")
It seems to work correctly for "SAT" which is in front on line 2, but not ACT! When I type in ACT in the module it will print "error" like it was false. What is my flaw here? Logic? Syntax? Semantic? What can I do to fix it?
Thank you.