title: Executing Python Script From Command Line is Hiding Print Statements
body: <p>I know this must be a super basic question, however, I have tried finding a simple answer throughout SO and cannot find one.</p>
  
  <p>So my question is this:  How can I execute a python script from the command line such that I can see print statements.</p>
  
  <p>For example, say I have the file test.py:</p>
  
  <pre><code>def hello():
      print "hello"
  </code></pre>
  
  <p>If I enter the interpreter, import test.py, and then call test.hello(), everything works fine.  However, I want to be able to just run </p>
  
  <pre><code>python test.py
  </code></pre>
  
  <p>from the command line and have it print "hello" to the terminal.  </p>
  
  <p>How do I do this?</p>
  
  <p>Thanks!</p>
  
  <p>UPDATED:
  Yes, sorry, my script is actually more like this:</p>
  
  <pre><code>def main():
      hello()
  
  def hello():
      print "hello"
  </code></pre>
  
  <p>Do I still need to call main(), or is it automatically invoked?</p>