A simple rule-based chatbot built in Python as part of my CodeAlpha Python Programming Internship.
This chatbot interacts with users using predefined responses. It demonstrates the basic concepts of Python, including:
- Functions
- While loops
- If-elif-else statements
- User input and output
- String methods (
lower())
The chatbot continues to interact with the user until they type "bye".
- Greets the user
- Responds to "hello" and "hi"
- Answers "how are you"
- Responds to greetings like "good morning" and "good afternoon"
- Introduces itself
- Responds to "thanks"
- Provides help
- Exits when the user types "bye"
- Python 3
- Clone this repository.
- Open the project folder.
- Run the following command:
python chatbot.py- Creating functions
- Using loops for continuous interaction
- Making decisions with if-elif-else
- Handling user input
- Building a simple command-line application
Kiran Sarwar
