title: equivalent of `a?b:c`
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/394809/python-ternary-operator">Python Ternary Operator</a>  </p>
  </blockquote>
  
  
  
  <p>I want to print out a string in python.  I don't want to do:</p>
  
  <pre><code>if isfemale_bit:
      print 'F'
  else:
      print 'M'
  </code></pre>
  
  <p>The best I have right now is <code>print ['M', 'F'][int(isfemale_bit)]</code>?</p>
  
  <p>Is there a better alternative?</p>
  
  <p>I needs my syntactic sugar!!</p>