Question: Let's Write Another Chatbot Let the bot have two lists... yeses = [yes, y, of course, certainly, sure] noses = [no, n, no way, of

![= ["yes", "y", "of course", "certainly", "sure"] noses = ["no", "n", "no](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66da72e376033_29166da72e30d46c.jpg)
Let's Write Another Chatbot Let the bot have two lists... yeses = ["yes", "y", "of course", "certainly", "sure"] noses = ["no", "n", "no way", "of course not", "never"] Then check if the user's response is one of these lists? After the user gives a reasonable response... Offer the user to ask 2 yeso questions. For each such question, randomly choose whether the bot answers yes or no, and then use some of the yeso variations. Optional: detect if the user question has the word "name" in it, and in that case the chatbot should reply informing its name. Optional: say goodbye in different ways. Sample Runs Example Output 1 Hi dear user! Do you want to talk to me? ==> sure! Great! Let's talk, my friend! Ask me any question you want ==> are you alive? no way Ask me any other question you want ==> are you serious? certainly yes Ok, enough talking ciao
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
