[Tutor] How to "refresh" the interactive prompt?

Alan Gauld alan.gauld at btinternet.com
Sun Oct 2 10:41:06 CEST 2011

On 02/10/11 06:17, Richard D. Moores wrote:

> "refresh" the prompt? By "refresh" I mean get a new interactive prompt
> with nothing imported and all things like  a = "qwerty",   n = 123,
> etc. no longer in effect. Not sure what the wording should be for
> that. "imports cancelled and variables deleted"?

If using the standard console prompt the answer is no.

There may be some IDEs that can do that (I thought I'd seen
it somewhere but can't recall where! I don't see it in IDLE...)

Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list