New line

I

ionic

Hi all

This is probably going to sound very dull but, how do you get to the next
line after youve finished typing the first line?

Thanks in advance
 
F

Fredrik Lundh

ionic said:
This is probably going to sound very dull but, how do you get to the next
line after youve finished typing the first line?

Thanks in advance

if you don't know how to get a new line, how did you write that message? </F>
 
J

James Stroud

In the absence of any context to this question: Hit the button that says
"Enter".

James

Hi all

This is probably going to sound very dull but, how do you get to the next
line after youve finished typing the first line?

Thanks in advance

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
 
I

ionic

Ok sorry guys,

using the python gui, if i hit the 'enter' key python just executes what
ever ive typed. It doesnt take me to the next line.

How do i type several lines without executing after each line?

Cheers
 
B

Brian van den Broek

ionic said unto the world upon 2005-04-21 16:34:
Ok sorry guys,

using the python gui, if i hit the 'enter' key python just executes what
ever ive typed. It doesnt take me to the next line.

How do i type several lines without executing after each line?

Cheers


A bit more precision in your question would help. I'm going to assume
that by "Python GUI" you mean IDLE.

You are likely trying to work in the interactive prompt. Very useful,
but not for writing programs to save. For that, File->New and you will
be in an IDLE window that lets you edit, run, and save files. (Be sure
to save them with the .py extension, as IDLE doesn't automatically do so.)

Best,

brian vdB
 
E

Esben Pedersen

ionic said:
Ok sorry guys,

using the python gui, if i hit the 'enter' key python just executes what
ever ive typed. It doesnt take me to the next line.

try shift + enter

/Esben
 
D

Dan

Open a text editor and write your code. Save the file with a .py
extension, i.e., myprogram.py. From the command line type 'python
myfile.py'

Dan
 
D

Dennis Lee Bieber

Got it now thanks all

Or in almost any other editor...

If the window you were typing in was showing a prompt ">>>", you
were in the interactive window.

To create a multi-line script, you need to pick whatever the
toolset uses for "new file" (I don't know idle -- I use PythonWin), then
save the file...

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,235
Messages
2,571,181
Members
47,818
Latest member
KazukoXea6

Latest Threads

Top