Hey i have quite a simple problem which i haven't been able to find anywhere. Basically i need to know how to make the user input a problem and then keywords from that input will be identified. Now these keywords will be stored in a couple text files and the relevant text file must be opened e.g. key word water opens the water text file and then a series of yes or no questions presented to the user after which will eventually result in two outcomes.
I really have looked everywhere on how to do this and all code looks different or isn't what i'm looking for. Any help on any aspects of the code would be greatly appreciated.
#Task 2 Trouble-Shooter 1.0
#Zacharriah River Howells
file = open('problem1','r')
import time
print('Hello and welcome to the mobile phone Trouble-Shooter!')
time.sleep(2)
print('Please input what is wrong with your phone')
print file.read()
This is what i have so far and it works up until the last line.