Why does it do this ? if - __name__ == '__main__'
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/419163/what-does-if-name-main-do">What does &lt;if <strong>name</strong>==&ldquo;<strong>main</strong>&rdquo;:&gt; do?</a>  </p>
</blockquote>



<p>Consider this code:</p>

<pre><code>if __name__ == '__main__':
    import pdb
    pdb.run("interact()\n")
</code></pre>

<p>What does the following line mean?</p>

<pre><code>if(__name__=='__main__')
</code></pre>

<p>I fainted.</p>
