<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div class="im" style="color: rgb(80, 0, 80); "><div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><i>when I actually </i><div style="display: inline; width: auto; ">
</div><i>type it I get an error msg</i></span></div><div><br></div></div><div>Did you type python commands in a bash console? In case you did, you should run python interactive console instead. Just type python in terminal window and than you'll be able interactively run statements.</div>
<div><br></div><div>If you have your script saved in a file, for instance, script.py, to run it on your Mac you should type:</div><div>$ python script.py</div><div><br></div><div>It would be easier to understand you if you'll post errors messages here.</div>
</span>