<div class="gmail_quote">Hi Ben,<div><br></div><div>It's best if you can avoid top-posting and put your responses in between the appropriate parts of the message you are replying to like I have below:<br><br><div class="gmail_quote">
<div class="im">On 4 September 2012 02:53, Benjamin Fishbein <span dir="ltr"><<a href="mailto:bfishbein79@gmail.com" target="_blank">bfishbein79@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I used Python Launcher and it opened it in the terminal.<br>
Ben<br>
<div><div><br>
On Sep 3, 2012, at 2:50 PM, Oscar Benjamin wrote:<br>
<br>
> On Mon, 03 Sep 2012 18:55:43 +0100, Alan Gauld <<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>> wrote:<br>
>> On 03/09/12 16:01, Benjamin Fishbein wrote:<br>
>> > Hi. I started running the program in the terminal rather than<br>
> IDLE. It<br>
>> > works, and I can run several programs at the same time. The<br>
> problem is<br>
>> > that when the program is finished running, it prints:<br>
>> > exit status: 0<br>
>> > logout<br>
>> ><br>
>> > [Process completed]<br>
><br>
> What do you mean when you say you ran the program in the terminal? Do you mean that you opened a terminal window and then typed 'python myprog.py'? Or did you click on the python file and choose 'run in terminal' or similar? That output looks to me like what happens on OSX when a terminal window is open but the shell has been closed.<br>

</div></div></blockquote><div><br></div></div><div>So you were using the python launcher on the dock? I guess you are using OSX, then (it's good to provide this kind of information).</div><div class="im"><div><br></div>
<div><div>The reason you're not seeing any output is probably because you're not printing it. If your program has a variable called 'total' that you would like to see the value of simply put a line like 'print(total)' at the end of your script. Then you should see the output.</div>
<span class="HOEnZb"><font color="#888888"><br class="Apple-interchange-newline"></font></span></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
><br>
> I think the instruction to run in a terminal should look like:<br>
> 1) open the terminal (how to do this depends on your OS).<br>
> 2) type 'cd /path/to/my/script/folder' and then hit enter.<br>
> 3) type 'python script.py' and then hit enter.<br></div></div></blockquote><div><br></div></div><div>Have you tried the instructions above. Assuming you're using OSX you can do step 1 by hitting cmd-space to open spotlight. Then you type 'terminal' and hit enter and you will have a terminal window.</div>

<div><br></div><div><span style="color:rgb(136,136,136)">Oscar.</span></div></div></div>
</div><br>