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,
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
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.
--
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 a
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 print hello
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 would get
hello
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
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
--
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
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 can
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 can
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 program
12 matches
Mail list logo