title: How do I write "for item in list not in other_list" in one line using Python?
body: <p>I want to make a loop for items in <code>list</code> that are not present in <code>other_list</code>, in one line. Something like this:</p>
  
  <pre><code>&gt;&gt;&gt; list = ['a', 'b', 'c', 'd']
  &gt;&gt;&gt; other_list = ['a', 'd']
  &gt;&gt;&gt; for item in list not in other_list:
  ...     print item
  ...
  b
  c
  </code></pre>
  
  <p>How is this possible?</p>