title: Truth value of a string in python
body: <pre><code>if &lt;boolean&gt; :
     # do this
  </code></pre>
  
  <p>boolean has to be either True or False.</p>
  
  <p>then why </p>
  
  <pre><code>if "poi":
     print "yes"
  </code></pre>
  
  <p>output:
  yes</p>
  
  <p>i didn't get why yes is printing , since "poi" is nether True or False.</p>