title: Use Python to search one .txt file for a list of words or phrases (and show the context)
body: <p>Basically as the question states. I am fairly new to Python and like to learn by seeing and doing. </p>
  
  <p>I would like to create a script that searches through a text document (say the text copied and pasted from a news article for example) for certain words or phrases. Ideally, the list of words and phrases would be stored in a separate file.</p>
  
  <p>When getting the results, it would be great to get the context of the results. So maybe it could print out the 50 characters in the text file before and after each search term that has been found. It'd be cool if it also showed what line the search term was found on.</p>
  
  <p>Any pointers on how to code this, or even code examples would be much appreciated. </p>