Python Inline If statements syntax
<p>When I do something like (totally random example dont read into variable names):</p>

<pre><code>variable = read_file() if read_file() else "File was empty"
</code></pre>

<p>In this case does read_file() get excuted twice? If so is there a way to do it to only execute once but keep it within one line? </p>
