title: How can I use if/else in a dictionary comprehension?
body: <p>Does there exist a way in Python&nbsp;2.7+ to make something like the following?</p>
  
  <pre><code>{ something_if_true if condition else something_if_false for key, value in dict_.items() }
  </code></pre>
  
  <p>I know you can make anything with just 'if':</p>
  
  <pre><code>{ something_if_true for key, value in dict_.items() if condition}
  </code></pre>