title: Python evaluates 0 as False
body: <p>In the Python console:</p>
  
  <pre><code>&gt;&gt;&gt; a = 0
  &gt;&gt;&gt; if a:
  ...   print "L"
  ... 
  &gt;&gt;&gt; a = 1
  &gt;&gt;&gt; if a:
  ...   print "L"
  ... 
  L
  &gt;&gt;&gt; a = 2
  &gt;&gt;&gt; if a:
  ...   print "L"
  ... 
  L
  </code></pre>
  
  <p>Why does this happen?</p>