Newbie question
Patrick Kirk
pknews at kirks.net
Mon May 21 09:41:17 EDT 2001
3 answers in 30 minutes...this is one active ng.
In summary, names of scripts are best in letters and not starting with
numbers. I suppose this is an extension of the logic that variables names
cannot start with a number.
To use the command python one.py I ought to be at the command line:
D:\Python\python.exe D:\Python\one.py >D:\Python\one.txt
Well that works.
To run the 1s.py script (which in all its glory says print "Hello World" )
from within the interpreter, I type import one.
That worked too.
Thanks for the lesson!
The official tutorial is a nightmare. Also it assumes that only a few poor
fools in Washington state use a non-Unix OS. I'm working with the How to
think like a computer scientist by Allen B. Downey and Jeffrey Elkner but if
it proves too much I will try your suggestion as well. Thanks for the link
More information about the Python-list
mailing list