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
"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
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
> 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
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
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
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
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
"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
> 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
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/
11 matches
Mail list logo