By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,598 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,598 IT Pros & Developers. It's quick & easy.

New line

P: n/a
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

--

"It's all in fun or life isn't worth it!"

Jul 19 '05 #1
Share this Question
Share on Google+
9 Replies


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

James

On Thursday 21 April 2005 01:15 pm, ionic wrote:
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

--

"It's all in fun or life isn't worth it!"


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

http://www.jamesstroud.com/
Jul 19 '05 #2

P: n/a
"ionic" wrote:
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>

Jul 19 '05 #3

P: n/a

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
--

"It's all in fun or life isn't worth it!"
"James Stroud" <js*****@mbi.ucla.edu> wrote in message
news:ma**************************************@pyth on.org...
In the absence of any context to this question: Hit the button that says
"Enter".

James

On Thursday 21 April 2005 01:15 pm, ionic wrote:
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

--

"It's all in fun or life isn't worth it!"


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

http://www.jamesstroud.com/

Jul 19 '05 #4

P: n/a
okay, you type your code in idle, and run your code by hitting the F5
key?

Jul 19 '05 #5

P: n/a
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
Jul 19 '05 #6

P: n/a
Got it now thanks all

--

"It's all in fun or life isn't worth it!"
"wi******@hotmail.com" <ma**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
okay, you type your code in idle, and run your code by hitting the F5
key?

Jul 19 '05 #7

P: n/a
ionic wrote:
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
Jul 19 '05 #8

P: n/a
Dan
On Thu, 21 Apr 2005 21:34:03 +0100, "ionic" <ju***@dfgt.com> wrote:

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

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


Jul 19 '05 #9

P: n/a
On Thu, 21 Apr 2005 22:07:45 +0100, "ionic" <ju***@dfgt.com> declaimed
the following in comp.lang.python:
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...

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 19 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.