Is there any way of assigning vars inside an if condition in python
<p>Is there any way of assigning vars inside an if condition in python like:</p>

<pre><code>if (i=variable)!='literal' :
</code></pre>
