title: Print elements containing only 2 strings
body: <p>I have this list</p>
  <pre><code>lst = [' SOME TEXT\nSOME TEXT\nFTY = 1', 'A|1\nB|5\nC|3\n \nD|0\nE|0', 'D|4\nE|1\nG|1', '\nblah blah', '\n---    HHGTY', 
      'SOME TEXT\nFTY = 1\nA|3\nB|2\nC|8\nD|6\nE|9\nF|3', '', 'blah blah\n \nblah blah', 
      '---    HHGTY'
      ]
  </code></pre>
  <p>and I want to print only the elements containing <code>|</code> or <code>HHGTY</code>. I using the code below, but is printing
  <code>SOME TEXT</code> and <code>FTY = 1</code> too. What is wrong? Thanks</p>
  <pre><code>&gt;&gt;&gt; for s in lst:
  ...     if (&quot;|&quot; in s) or (&quot;HHGTY&quot; in s):
  ...             print(s)
  ...
  A|1
  B|5
  C|3
  
  D|0
  E|0
  D|4
  E|1
  G|1
  
  ---    HHGTY
  SOME TEXT
  FTY = 1
  A|3
  B|2
  C|8
  D|6
  E|9
  F|3
  ---    HHGTY
  &gt;&gt;&gt;
  </code></pre>