title: How to use lambda if else in map() on list in python?
body: <p>I have a list <code>['apple', 'banana', 'cherry']</code></p>
  
  <p>I want to run map on it which will select a few items </p>
  
  <pre><code>l = map(lambda x : x if x == "apple" else pass, ['apple', 'banana', 'cherry'])
  </code></pre>
  
  <p>it seems that it should work but its giving syntax error</p>
  
  <p>What is the issue here?</p>