title: Python List Comprehension and 'not in'
body: <p>I'm getting started with Python and is currently learning about list comprehensions so this may sound really strange.</p>
  
  <p><strong>Question:</strong> Is it possible to use list comprehension to create a list of elements in <code>t</code> that is not found in <code>s</code>?</p>
  
  <p>I tried the following and it gave me an error:</p>
  
  <pre><code>&gt;&gt;&gt; t = [1, 2, 3, 4, 5]
  &gt;&gt;&gt; s = [1, 3, 5]
  &gt;&gt;&gt;[t for t not in s]
  
  [t for t not in s]
             ^
  SyntaxError: invalid syntax
  </code></pre>