title: python map function (+ lambda) involving conditionals (if)
body: <p>I'm curious if it's possible to do something with the <code>map()</code>function that I can do via list comprehension.</p>
  
  <p>For ex, take this list comp:</p>
  
  <pre><code>example_list = [x*2 for x in range(5) if x*2/6. != 1]
  </code></pre>
  
  <p>obviously, this gives me [0, 2, 4, 8].</p>
  
  <p>How do I make the equivalent using the <code>map()</code> function? Doing this gives me a syntax error.</p>
  
  <pre><code>example_map = map(lambda x:x*2 if x*2/6. != 1, range(5))
  </code></pre>
  
  <p>Just trying to get a better understanding of how to use this function. </p>