I see. <div>Your script begins with a string:</div><div><br></div><div>$ python test.py </div><div><br></div><div>It's not a valid python code. Maybe you just copied this text to your script accidentally. Try to delete the first string. Can you send a few first strings of your script?</div>

<div><br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 17:05, Agida Kerimova <span dir="ltr"><<a href="mailto:agidak@gmail.com">agidak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

this is what it looks like<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 7:01 PM, Agida Kerimova <span dir="ltr"><<a href="mailto:agidak@gmail.com" target="_blank">agidak@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I don't know how to work in a non bash console... I typed python in a terminal window and all but it didn't work...<div><img><br><div><br>
</div><div><br></div><div><br></div><div><br><div><br><div class="gmail_quote"><div><div></div><div>On Thu, Aug 19, 2010 at 5:53 PM, Sergey Smirnov <span dir="ltr"><<a href="mailto:smirnoffs@gmail.com" target="_blank">smirnoffs@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><div>


<div 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><div><div></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>





</div></div></span>
<br></div></div>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a></blockquote><div> </div></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>