title: python evaluate bool within a list comprehension
body: <p>Can I evaluate a bool within a list comprehension?</p>
  
  <p>I would like to create a list that does not contain items that end with <code>'.zip'</code>:</p>
  
  <pre><code>outlist = [x for x in os.listdir(path) if x *DOES NOT* end with '.zip']
  </code></pre>
  
  <p>I've used list comprehension for the exact opposite:</p>
  
  <pre><code>outlist2 = [x for x in os.listdir(path) if x.endswith('.zip')]
  </code></pre>
  
  <p>here is the outout of my list</p>
  
  <pre><code>os.listdir(path):
  [
  'sample1.zip', 'sample2.zip', 'sample3.zip', 'sample4.zip',
  'sample1.txt', 'sample2.pdf', 'sample3.csv', 'sample4.xlsx'
  ]
  </code></pre>