ans = input("Enter yes or no: ") 
if ans != "Yes" or "yes" or "no" or "No":
    print("Can't do that") 
if ans == "yes" or "Yes": 
    print("Great!")
if ans == "no" or "No": 
    print("Okay, then") 
 
If I type let's say "Okay" it outputs this:
Can't do that! Great! Okay, then
instead of "Can't do that". I don't know what's wrong, and I couldn't find questions like this.
 
     
     
     
     
    