title: Applying conditional after nested loop to the parent loop
body: <p>I have this code:</p>
  
  <pre><code>values="2"
  content=["line1","line2","line3"]
  for line in content:
      if values not in line:
          print(line)
  </code></pre>
  
  <p>which successfully prints out items of <code>content</code> when value <code>2</code> is not in those items:</p>
  
  <pre><code>line1
  line3
  </code></pre>
  
  <p>Practically, I am grabbing <code>content</code> out of a file.readlines() method. </p>
  
  <p>Now, I am stuck when I have to compare more than one value against each of the content lines:</p>
  
  <pre><code>values=["2","3"]
  </code></pre>
  
  <p>Again, I need to check if <code>2</code> or <code>3</code> are in each of the <code>content</code> lines and print the line when they are not.</p>
  
  <p>I came up with this:</p>
  
  <pre><code>values=["2","3"]
  content=["line1","line2","line3"]
  for line in content:
      for value in values:
          if value not in line:
              print(line)
  </code></pre>
  
  <p>But that would normally return this:</p>
  
  <pre><code>line1
  line1
  line2
  line3
  </code></pre>
  
  <p>I would expect only <code>line1</code> to be printed out.
  Any workaround to this?</p>