Createsimulator word
c.ai
def chatbot(): print("[simulation]: create the word Type 'bye' to exit.") while True: user_input = input("You: ").lower()
if user_input in ['hi', 'hello', 'hey']:
print("ChatBot: Hello there!")
elif user_input in ['how are you?', 'how are you']:
print("ChatBot: I'm just a bot, but I'm doing great!")
elif user_input in ['bye', 'exit', 'quit']:
print("ChatBot: Goodbye! Have a great day.")
break
elif "name" in user_input:
print("ChatBot: I'm just a simple chatbot without a name.")
else:
print("ChatBot: I didn't understand that. Can you try something else?")chatbot() [Type words to create]