Do you need to use __name__=__main__ statement for running any script in python?
<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><br>
  <a href="http://stackoverflow.com/questions/1954700/whats-the-point-of-a-main-function-and-or-name-main-check-in-pytho">What&#39;s the point of a main function and/or <strong>name</strong> == &ldquo;<strong>main</strong>&rdquo; check in Python?</a>  </p>
</blockquote>



<p>I just wanted to understand why  you have you use the <code>__name__='__main__'</code>statement if we can run any python script even without using that statement.
For example, I can run the script below without using the if <code>__name__='__main__'</code> statement.</p>

<pre><code>def hello():
      print "hello"
      return 1234

# And here is the function being used
print hello()
</code></pre>
