Pythonic way to select first variable that evaluates to True
<p>I have some variables and I want to select the first one that evaluates to True, or else return a default value.</p>

<p>For instance I have <code>a</code>, <code>b</code>, and <code>c</code>. My existing code:</p>

<pre><code>result = a if a else (b if b else (c if c else default))
</code></pre>

<p>Another approach I was considering:</p>

<pre><code>result = ([v for v in (a, b, c) if v] + [default])[0]
</code></pre>

<p>But they both feel messy, so is there a more Pythonic way?</p>
