Question: IN PYTHON Exercise 4 Build a single chatbot that takes input from the user and behaves in the following way: 1. If the input is

IN PYTHONIN PYTHON Exercise 4 Build a single chatbot that takes input from

Exercise 4 Build a single chatbot that takes input from the user and behaves in the following way: 1. If the input is a "I feel [..] statement, the chatbot responds by asking "Why do you feel that way"? 2. If the input is a "Can you [predicate] " question, the chatbot responds by saying "Sure, I can [predicatel all day." 3. If the input is a "Did you [predicatel" question, the chatbot responds by saying "No, I didn't [predicate]. 4. If the input is anything else, the chatbot responds by saying "That's interesting. What else is on your mind?" (or something to that effect). 5. Have the chatbot loop until the user enters a string containing some variant of quit In 1 Put your code for Exercise 4 here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!