<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">IDLE 2.6.2<br>
>>> python module1.py<br>
SyntaxError: invalid syntax<br></blockquote><div><br></div><div>The ">>>" prompt is Python's interactive interpreter. Once you are here, you already are in python-- so typing "python" again is redundant and invalid. From this prompt you type in python code. </div>
<div><br></div><div>I have never used IDLE so can't comment on how to get it to run modules and collect output-- but I suspect when your file is open in IDLE there's a menu option that says something about Run.</div>
<div><br></div><div>But....</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">sean-m-computer:~ seanm$ python<br>
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)<br>
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> python module1.py<br>
File "<stdin>", line 1<br>
python module1.py<br>
^<br>
SyntaxError: invalid syntax<br></blockquote><div><br></div><div>Same thing. You're starting python: then doing 'python module1.py' within Python, which doesn't make sense. If you want Python to run the module, just do "python module1.py" instead of "python" from your command prompt.</div>
<div><br></div><div>--S</div></div>