print("Welcome to ChatBot! Type 'bye' to exit.
\n")
while True:
user_input = input("You: ").lower()
if user_input == 'bye':
print("ChatBot: Goodbye! Have a nice day.")
break
if 'hello' in user_input or 'hi' in user_input:
print("ChatBot: Hello! How can I help you today?")
elif 'how are you' in user_input:
print("ChatBot: I'm just a program, but I'm doing fine! How about you?")
elif 'your name' in user_input:
print("ChatBot: I'm a simple chatbot created with Python.")
elif 'help' in user_input:
print("ChatBot: I can chat with you, answer basic questions, and respond to
greetings.")
, .
elif 'thanks' in user_input or 'thank you' in user_input:
print("ChatBot: You're welcome!")
else:
print("ChatBot: I'm not sure how to respond to that.")