title: python search file for a list of words
body: <p>First I started trying to search file for one single word with this code:</p>
  
  <pre><code>import re
  
  shakes = open("tt.txt", "r")
  
  for line in shakes:
      if re.match("(.*)(H|h)appy(.*)", line):
          print line,
  </code></pre>
  
  <p>but what if I need to check for multiple words? I was thinking that maybe something like a <code>for</code> loop can work, searching the file each time for a different word in the list.</p>
  
  <p>Do you think this can be convenient?</p>