What version of python was this syntax added
<p>I know it is possible to put an If/Else statement all on one line, similar to this.</p>

<pre><code>[True if 1 else False]
</code></pre>

<p>What version of python was this added?</p>
