Which Python ternary operation is better and why?
<p>I have been reading all over the place, including <a href="http://stackoverflow.com/questions/394809/ternary-conditional-operator-in-python">Ternary conditional operator in Python</a>. It is supposed that</p>

<pre><code>result = a if a &gt; b else b
</code></pre>

<p>is better code than</p>

<pre><code>result =  a &gt; b and a or b
</code></pre>

<p>But no one ever explains why. Will someone please elaborate?</p>

<p>If it's mere readability, then it's really just a matter of preference: some people will like the one and some people will like the other. So my question is: is there some really technical advantage for going one way versus the other.</p>
