title: Find multiple words or strings in an if statement
body: <p>I am using Python with Beautiful Soup 4 to fetch some text from a website. I am using a <em>for loop</em> to say: "Print the text only if the returned text does not contain the word <strong><em>lorem</em></strong>"</p>
  
  <p>My question is, how can I do the same but for multiple words? For example for <strong><em>lorem</em></strong>, <strong><em>ipsum</em></strong> and <strong><em>dolor</em></strong>.</p>
  
  <p>This is what I have tried and I am unsure how to proceed:</p>
  
  <pre><code>for title in soup.select('.panel-heading h3 a'):
      if 'lorem' not in title.text:
          print(title.text, '--&gt;', title.get('href'))
  </code></pre>