Chatbot
Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
def chatbot():
print("Chatbot: Hello! I am your college assistant chatbot.")
print("Type 'bye' to exit.\n")
while True:
user = input("You: ").lower()
if user == "bye":
print("Chatbot: Bye! Have a nice day.")
break
elif "name" in user:
print("Chatbot: My name is CollegeBot.")
elif "course" in user:
print("Chatbot: We offer BTech, BSc, and MSc courses.")
elif "admission" in user:
print("Chatbot: Admissions are open from April to July.")
elif "location" in user:
print("Chatbot: We are located in Pune.")
else:
print("Chatbot: Sorry, I don't understand that.")
chatbot()