title: In Python, searching a text file for multiple words and printing the corresponding lines
body: <p>I have a list of sentences I would like to search. I want to print the lines that contain my search words. This code works:</p>
  
  <pre><code>fruit_list = open('fruitlist.txt')
  for line in fruit_list:
      if 'apple' in line or 'banana' in line or 'orange' in line:
          print (line)
  </code></pre>
  
  <p>But this can be pretty tedious; especially if I want my list of search words to be longer.  I would like to make a list of search words and use that to search the document and print the line. </p>
  
  <pre><code>search_words=['apple','banana','orange','lemon']
  for line in fruit_list:
      if item in search_words in line:
          print (line)
  </code></pre>
  
  <p>This code doesn't work because "item" isn't defined. Anyway I could get this done? I'm a newbie with python. </p>