Create a program that reads a input question (full question) from the user and then matches it with already saved answers in the program (through find or any other function to check matching words ) and returns that appropriate answer if there is a match. For questions whose answers are not avaliable use random module and display statements like "sorry i am not intelligent enough" "plz ask any other question" **coding language python   ***(hint u can create a list for answers and can also convert the input question from user in to a list and then match them)  **(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 programming techniques

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

Create a program that reads a input question (full question) from the user and then matches it with already saved answers in the program (through find or any other function to check matching words ) and returns that appropriate answer if there is a match. For questions whose answers are not avaliable use random module and display statements like "sorry i am not intelligent enough" "plz ask any other question"

**coding language python  

***(hint u can create a list for answers and can also convert the input question from user in to a list and then match them)

 **(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 programming techniques in python without using arrays and pointers 

* * * 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

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,