Chatbot using Python

Chatbot using Python

Introduction

This is a simple chatbot made using Python. This chatbot interacts with users by asking their name, how their day is going, and saying Goodbye to the user.


Source Code:

import time
print ("Hi, i'm a chatbot. What's your name?")
name input()
print("Nice to meet you,"+ name + "!")
time.sleep(1)
print ("How's your day going?")
response = input()

if "good" in response.lower():
    print("Glad to hear that!")
elif "bad" in response.lower():
    print("i'm soory to hear that.")
elif:
    print("Interesting!")

print("It was nice chatting with you. Goodbye," + name + "!")

Output

Output Image