title: Conditional operator in Python?
body: <p>do you know if Python supports some keyword or expression like in C++ to return values based on <code>if</code> condition, all in the same line (The C++ <code>if</code> expressed with the question mark <code>?</code>)</p>
  
  <pre><code>// C++
  value = ( a &gt; 10 ? b : c )
  </code></pre>