title: How can I make something like a?b:c in python?
body: <p>In java, I usually use</p>
  
  <pre><code>boolean x = a? b : c;
  </code></pre>
  
  <p>instead</p>
  
  <pre><code>if(a)
      boolean x = b;
  else
      boolean x = c;
  </code></pre>
  
  <p>Is there any possibility for doing that in python?</p>