Understanding string "null" in python
<p>I have 2 variables: <code>x="null"</code> and <code>y=3</code></p>

<p>Following which I execute the command below:</p>

<pre><code>if(x and y):
  print 'True'
</code></pre>

<p>Output:<code>True</code></p>

<p>I am looking for guidance to understand this behavior better.</p>

<p>The answer to this question fixed my issue <a href="https://stackoverflow.com/questions/9573244/most-elegant-way-to-check-if-the-string-is-empty-in-python">Most elegant way to check if the string is empty in Python?</a></p>

<p>But I want to understand the behavior of this. I want to know how an <code>AND</code> of <code>"null"</code> and a numeric value of <code>3</code> returns in <code>3</code> which in turn results in <code>truthify</code> value.</p>