title: How differentiate `0` from `False` In python
body: <p>I'm trying to configure the following <code>if else</code> :</p>
  
  <p>Basically <code>0</code> <strong>is equals</strong> to <code>False</code> in Python... </p>
  
  <p>I would like to understand why this happens and how I can workaround in this case :</p>
  
  <pre><code>x=0
  
  if x==False:
     print "x == False" #always prints this line
  elif x == 0:
     print "x == 0"
  </code></pre>
  
  <p>Appreciate the help:</p>
  
  <p><strong>EDIT:</strong></p>
  
  <blockquote>
    <p>already tried <code>x = int(0)</code></p>
  </blockquote>