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 -
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:
"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,
"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
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
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