Re: [Tutor] run command

2009-09-05 Thread upasara wulung
To all good friends, Wonderful, within just a short time, I have received many new things about python from this list. Thank you so much for all responses; they are really useful, shorten my learning time. --- Best regards, Upa ___ Tutor maillist -

Re: [Tutor] run command

2009-09-05 Thread Eike Welk
Hello Upasara! On Saturday 05 September 2009, upasara wulung wrote: > (1) In a certain working folder, I produced simple python file, for > an example, hello.py, which is free of error. > (2) I called python from the same working folder using command > 'python' (3) In the python shell, I executed:

Re: [Tutor] run command

2009-09-05 Thread Alan Gauld
"upasara wulung" wrote Wish you would not mind a really beginner question. Thats what we are here for! :-) I am trying to use 'run' command, but didnot success yet. Thats because it does not exist in Python. How I did it: (1) In a certain working folder, I produced simple python file,

Re: [Tutor] run command

2009-09-05 Thread Michael M Mason
"upasara wulung" wrote: (1) In a certain working folder, I produced simple python file, for an example, hello.py, which is free of error. (2) I called python from the same working folder using command 'python' (3) In the python shell, I executed: >>> run hello.py But I got only an error message

Re: [Tutor] run command

2009-09-04 Thread Eric Dorsey
Make sure you are in the same directory as your hello.py, then run the interpreter/shell Try this: >>>import hello then you can do things like: >>>dir(hello) and >>>help(hello) I'm not sure if that's what you were asking, but "import" is how you .. import. HTH. On Fri, Sep 4, 2009 at 5:31 P

[Tutor] run command

2009-09-04 Thread upasara wulung
hello, Wish you would not mind a really beginner question. I am trying to use 'run' command, but didnot success yet. How I did it: (1) In a certain working folder, I produced simple python file, for an example, hello.py, which is free of error. (2) I called python from the same working folder usi