I'm wondering how I could display the same result if the user inputs two specific answers in the input command (ie 'end' and 'End').
Here's the code I have so far; everything is working except the "end" part:
def password(): #defines password
print("Please input your password.")
pass2 = input("Password: ")
if pass2 == ("abcd123"):
print("Thank you for using Efficient Systems, Co.")
end = input("Type end to exit: ")
while True:
if end == ("end") and ("End"):
break
else:
print("Invalid command.")
end = input("Type end to exit: ")
else:
print("Invalid command.")
time.sleep(1)
pass2 = input("Password: ")
I think it's worth noting that if I do type in 'end', it goes back to pass2.