I have this:
salir = ""
while salir != "s" or salir != "S":
print("no has salido")
salir = input("Digit s to exit or enter to continue)
print("saliste")
but the operator != doesnt work, but if I put this:
salir = ""
while not (salir == "s" or salir == "S"):
print("no has salido")
salir = input("Digit s to exit or enter to continue")
print("saliste")
the code works normal, the problem is the comparison operator != because if I change that by " not == " this works. Can anybody explain the problem?