Accessing Hello World

Pete Shinners pete at visionart.com
Tue Nov 7 20:44:55 EST 2000


"Brendhan Horne" <brendhanhorne at bellsouth.net> wrote
> That didn't do it.
> >>>hello.py
> error
> >>>python hello.py
> Thanks,
> Brendhan
> error
> So from the command line prompt it won't open Hello, World !
> What the heck am I doing wrong here.?

from the DOS prompt, type "python hello.py" and it will run.
if you type "python" without any arguments, it will start in
interactive mode. when using interactive python, you can load
a module with the command "import hello". this will look like
it is just running the module, but really it is doing a bit
more. the "hello.py" module is actually becoming a part of
your interactive python session (it just happens to execute
the lines of hello.py as it is imported).






More information about the Python-list mailing list