Re: Python windows interactive.

2006-10-31 Thread Fredrik Lundh
notejam wrote: > Can not figure out how to write more than one line in interpreter mode. press return between the lines. if you get a "..." prompt, keep adding more lines to the current statement. press return an extra time to end the multiline-statement. > Is that all interpreter is good for

Re: Python windows interactive.

2006-10-30 Thread Hendrik van Rooyen
"notejam" <[EMAIL PROTECTED]> Top posted: > Thanks everyone for the help. I got a simple two line program to work > from a text file. > Can not figure out how to write more than one line in interpreter mode. > Is that all interpreter is good for, testing one liners? I have it > run the progra

Re: Python windows interactive.

2006-10-30 Thread Steve Holden
notejam wrote: > Thanks everyone for the help. I got a simple two line program to work > from a text file. > Can not figure out how to write more than one line in interpreter mode. > Is that all interpreter is good for, testing one liners? I have it > run the program everytime I hit return, and

Re: Python windows interactive.

2006-10-30 Thread Tiefeng Wu
> notejam wrote: > Thanks everyone for the help. I got a simple two line program to work > from a text file. > Can not figure out how to write more than one line in interpreter mode. > Is that all interpreter is good for, testing one liners? I have it > run the program everytime I hit return, an

Re: Python windows interactive.

2006-10-30 Thread Gabriel Genellina
At Monday 30/10/2006 21:15, notejam wrote: Thanks everyone for the help. I got a simple two line program to work from a text file. Can not figure out how to write more than one line in interpreter mode. Is that all interpreter is good for, testing one liners? I have it run the program everyt

Re: Python windows interactive.

2006-10-30 Thread BartlebyScrivener
Try this, assuming you're in IDLE. http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/index.html You can enter as many lines as you want in the interpreter. Then press ENTER twice to get the result. Or try here if you're looking for some tutorials. http://tinyurl.com/w7wgp rd -- http://mai

Re: Python windows interactive.

2006-10-30 Thread notejam
Thanks everyone for the help. I got a simple two line program to work from a text file. Can not figure out how to write more than one line in interpreter mode. Is that all interpreter is good for, testing one liners? I have it run the program everytime I hit return, and can not figure out how t

Re: Python windows interactive.

2006-10-30 Thread Larry Bates
notejam wrote: > I am trying to get started with a interactive version of Python for > windows and need some help. > I have played with the tutorial, and now want to write a program. > > In basic language, I could write something like > 10 print "hello" > 20 print "Jim" > > and if I run it I woul

Re: Python windows interactive.

2006-10-30 Thread Paul McGuire
"notejam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am trying to get started with a interactive version of Python for > windows and need some help. > I have played with the tutorial, and now want to write a program. > > In basic language, I could write something like > 10 prin

Re: Python windows interactive.

2006-10-30 Thread abcd
> How do I do sometihing simple like that in python? print "hello" print "Jim" > How do I enter line numbers, or if none, what do I do. no line numbers needed > Can the interpreter load a text file with my program in it? read in a text file: data = open("something.txt").read() > How do I list

Re: Python windows interactive.

2006-10-30 Thread robfalck
edit a plain text file, just type one line print "hello, world" Now save that one-line text file as "hello.py". From the command line, in the same directory, type: python hello.py And it should run your script. Python doesnt require line numbers. Happy coding. -- http://mail.python.org/

Python windows interactive.

2006-10-30 Thread notejam
I am trying to get started with a interactive version of Python for windows and need some help. I have played with the tutorial, and now want to write a program. In basic language, I could write something like 10 print "hello" 20 print "Jim" and if I run it I would get hello Jim How do I do some