x = input("door:") if "key" in x: print("opened") else: print("closed") When someone puts a word that contains the word "key", like "donkey" or "monkey", it prints "open" but I want them to use the exact word "key". Continue reading...