Ternary using pass keyword python
<p>I have a working conditional statement:</p>

<pre><code>if True:
    pass
else:
    continue
</code></pre>

<p>that I would like to turn it into a ternary expression:</p>

<pre><code>pass if True else continue
</code></pre>

<p>However, Python does not allow this. Can anyone help? </p>

<p>Thanks!</p>

<p>Ternary expression are used to compute values; neither <code>pass</code> nor <code>continue</code> are values.</p>

python conditional ternary