[Tutor] How do I get rid of blank space when running a program I'vecoded?

Nathan Pinno falcon3166 at hotmail.com
Sun Jul 31 04:58:33 CEST 2005


I never have it. Although when I ask for option I use 
int(raw_input('Option:')) instead of raw_input('Option:'). That's usually 
near the top, but part of a while loop.
----- Original Message ----- 
From: "Kent Johnson" <kent37 at tds.net>
Cc: <tutor at python.org>
Sent: Saturday, July 30, 2005 8:55 PM
Subject: Re: [Tutor] How do I get rid of blank space when running a program 
I'vecoded?


> Do you have a call to raw_input() at the end of your program? That will 
> make you press return to exit the program. It's useful for command-line 
> programs that you want to run by double-clicking them but you can take it 
> out if you find it annoying.
>
> Kent
>
> Nathan Pinno wrote:
>> I meant the return key, not the spacebar. Sorry for the mix-up.
>>
>>     ----- Original Message -----
>>     *From:* Nathan Pinno <mailto:falcon3166 at hotmail.com>
>>     *To:* tutor at python.org <mailto:tutor at python.org>
>>     *Sent:* Saturday, July 30, 2005 3:50 PM
>>     *Subject:* [Tutor] How do I get rid of blank space when running a
>>     program I'vecoded?
>>
>>     Hi all,
>>
>>     I'll be brief. I always get a blank line whenever I run my Python
>>     programs that I've coded. How can I get rid of it. It's kind of
>>     annoying to press the spacebar in order to return to >>> in IDLE or
>>     the C:\ prompt in DOS.
>>
>>     Thanks,
>>     Nathan
>>
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     Tutor maillist  -  Tutor at python.org <mailto:Tutor at python.org>
>>     http://mail.python.org/mailman/listinfo/tutor
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> http://mail.python.org/mailman/listinfo/tutor
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 


More information about the Tutor mailing list