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:
>>> import os
>>> os.system("ls")
0
Why does it do this? (note this is a mac command, as i'm on a mac)