Running python on unix
Martin v. Löwis
martin at v.loewis.de
Fri Mar 28 17:04:28 EST 2003
patrickj at muohio.edu (kpatrick1979) writes:
> However, after I enter the first line of code (i'm using the Python
> command line programming that you can get from the web) I immediately
> get the "Please enter an integer" line -- it doesn't permit me to type
> the rest of the code. Does anyone know a better way for me to try and
> do this program? I tried using Unix, but am not having much success
> there either (maybe i'm doing that wrong too) Help!
You should save the entire program into a file (call it round.py),
then invoke "python round.py", or put
#! /usr/bin/env python
into the first line of round.py, make the file executable, and invoke
"round.py".
HTH,
Martin
More information about the Python-list
mailing list