A simple chatbot built using Python. It gives predefined responses based on user input.
- Greets users
- Answers predefined questions
- Handles exit commands
- Uses if-elif-else logic
- Runs continuously using a loop
- Open the terminal in VS Code.
- Run:
python project1_chatbot.py
- hi
- hello
- hey
- how are you
- what is your name
- who created you
- tell me a joke
- what is the date
- what is the time
- what can you do
- what is ai
- what is your favorite color
- thank you
- help
- what is your age
- what is your mood
- bye / exit / quit
while Truefor continuous loopinput()for user inputif-elif-elsefor decision making.lower()to ignore uppercase/lowercasebreakto stop the chatbot