title: List comprehension with if statement
body: <p>I want to compare 2 iterables and print the items which appear in both iterables.</p>
  
  <pre><code>&gt;&gt;&gt; a = ('q', 'r')
  &gt;&gt;&gt; b = ('q')
  
  
  # Iterate over a. If y not in b, print y.
  # I want to see ['r'] printed.
  &gt;&gt;&gt; print([ y if y not in b for y in a])
                                ^
  </code></pre>
  
  <p>But it gives me a invalid syntax error where the <code>^</code> has been placed.
  What is wrong about this lamba function?</p>