title: Linking keywords from python to a csv that stores the solutions to the issue the user is experiencing
body: <p>I have a code that allows me to identify keywords inputted from a user and the system displays the problem the keyword linked to and asks if it is correct. If the user inputs yes a solution is given </p>
  
  <pre><code># The following is a database of problems, keywords, and solutions.
  
  PROBLEMS = (('My phone does not turn on.',
               {'power', 'turn', 'on', 'off'},
               ('put it on charger.',))
  
  
  
  # These are possible answers accepted for yes/no style questions.
  POSITIVE = tuple(map(str.casefold, ('yes', 'true', 'correct')))
  NEGATIVE = tuple(map(str.casefold, ('no', 'false', 'incorrect')))
  
  
  def main():
      """Find out what problem is being experienced and provide a solution."""
      description = input('Welcome to the repair centre. Please state the problem with your device: ')
      words = {''.join(filter(str.isalpha, word))
               for word in description.lower().split()}
      for problem, keywords, steps in PROBLEMS:
          if words &amp; keywords:
              print('This may be what you are experiencing:')
              print(problem)
              if get_response('Does this match your problem? '):
                  print('Please follow the solution given')
                  for number, step in enumerate(steps, 1):
                      print('{}. {}'.format(number, step))
                  print('Once you have carried out the solution suggested by the system the problem with your device should be fixed .')
                  print('If you have carried out the solution suggested by the system and the problem is not fixed, please take the device  to either the manufacturer or to the repair shop to get it fixed professionally.')
                  break
      else:
          print('Unfortunately the repair centre cannot help you with your problem.')
  
  
  def get_response(query):
      """Ask the user yes/no style questions and return the results."""
      while True:
          answer = input(query).casefold()
          if answer:
              if any(option.startswith(answer) for option in POSITIVE):
                  return True
              if any(option.startswith(answer) for option in NEGATIVE):
                  return False
          print('Please respond with the positive or negative answer listed : yes, true, correct, no, false, incorrect.')
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>However how can i store all the solutions in a text file and make the keywords stored in python link to it depending on the user input.
  I want a specific line from the text file to be outputted to the user. 
  Help will be appreciated </p>