A simple rule-based chatbot built in Python. It responds to a small set of predefined user inputs with fixed replies.
- Recognizes greetings, small talk, and farewells (e.g. "hello", "how are you", "bye").
- Case-insensitive matching with basic punctuation handling.
- Exits automatically when the user types "bye", "exit", or "quit".
python3 chatbot.pyType a message and press Enter. Try things like hello, how are you, or bye.
if-elifconditions- Functions
- Loops
- Input/output handling