[Tutor] New Re: Clearing Python text
Alan Gauld
alan.gauld at btinternet.com
Fri Dec 14 19:34:51 CET 2012
On 14/12/12 15:25, Waters, Mike [ITSCA Non-J&J] wrote:
> To state my challenge : When I have filled a page with values and text
> until it reaches the bottom of the screen, how can I highlight this and
> remove to allow further entries? I have seen John Guttag do this but he
> seems to be using a MAC.
Like others I don't really understand what you mean by a page.
But in general you don't need to do that. If you are using the Python prompt
>>>
You just keep adding stuff and it will scroll up.
If you just want some clear space hit return a few times.
Or as already suggested:
print '\n' * 50 # prints 50 newlines...
But it all depends on what tool you are using to enter your Python
code. You may have something odd that has a fixed screen but if so
I've never come across it!
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list