Is there a more elegant pythonic way of expressing the following condional expression?
<p>I would like a more pythonic way for the following branch if any:</p>

<pre><code>if a&lt;b:
   a.append('value')
elif a==b:
   b.append('value')
else:
   do nothing
</code></pre>

<p>Is there any ternary operator for that?</p>
