Create a chatbot that takes input questions from the user converts that input question to a list and then matches that question list with already saved appropriate (suitable) answer list.Try to save two to three appropriate answers in list for a single question then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with any of the answers present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear
Create a chatbot that takes input questions from the user converts that input question to a list and then matches that question list with already saved appropriate (suitable) answer list.Try to save two to three appropriate answers in list for a single question then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with any of the answers present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear
**coding language python
**(hint) take the question as input from the user and then give answer for that question. You can make use of find function to see any matching words for which you are providing answers or can use any other similar method
***try using basic
* * * copy paste the program itself and also the screenshot of program and output
* * * use any type of data for questions such as name details of cities species etc depends on the choice of programmer
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 5 images