It sounds like you've been using the PythonMolo Feziwe
interactive prompt such as IDLE. You can type the
same Python statements you've used there into a text
editor or Python IDE and save it.
Let's say you have created a Python program/script
called hello.py in a text editor and saved it. You can
now open a command prompt (Windows) or console (linux)
in the directory where your program is saved.
Then type:
python hello.py
If you are using Windows and this does not work, it will be because Python is not in your system path. Good luck Ben
--- Danny Yoo <[EMAIL PROTECTED]> wrote:
---------- Forwarded message ---------- Date: Wed, 13 Apr 2005 17:12:55 +0200 From: Feziwe Mpondo <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: help
how to run a programm after you have typed in the commands
If you are using Linux, don't forget to make your program executable by including the "she-bang" *before* any of your Python code, such as: #!/bin/sh
If you want to then run it by itself (i.e. just on the command line) chmod u+x myfile.py and then at the command line you can just type in myfile.py and the programme will execute. Pretty neat, eh?
If you're using Windows, I haven't a clue so follow the other guys' advice.
Best wishes
/j _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor