title: using a conditional and lambda in map
body: <p>If I want to take a list of numbers and do something like this:</p>
  
  <pre><code>lst = [1,2,4,5]
  [1,2,4,5] ==&gt; ['lower','lower','higher','higher']
  </code></pre>
  
  <p>where <code>3</code> is the condition using the map function, is there an easy way?</p>
  
  <p>Clearly <code>map(lambda x: x&lt;3, lst)</code> gets me pretty close, but how could I include a statement in map that allows me to immediately return a string instead of the booleans?</p>