title: Why does python return 0 when I fire terminal commands?
body: <p>I was experimenting with getting python to interact with my terminal, and i tried the following script, and it returned 0, when i expected it to show the contents of the current directory:</p>
  
  <pre><code>&gt;&gt;&gt; import os
  &gt;&gt;&gt; os.system("ls")
  0
  </code></pre>
  
  <p>Why does it do this? (note this is a mac command, as i'm on a mac)</p>