I used some of the codes such as
clear
cls
clc
but none of them gave me the desired result.
Is there any command that can clear the screen of the idle?
Asked
Active
Viewed 575 times
0

Yaron
- 10,166
- 9
- 45
- 65

Mahesh kafle
- 3
- 3
-
Possible duplicate of [Any way to clear python's IDLE window?](http://stackoverflow.com/questions/1432480/any-way-to-clear-pythons-idle-window) – Guillaume Jacquenot Jan 19 '17 at 06:16
2 Answers
0
There is a temporary hack to achieve the effect of a clear screen in IDLE Python 3 shell. It is:
print ("\n" * 100)

KuboAndTwoStrings
- 864
- 12
- 20
-2
Press the key Ctrl+F6
then you can restart the powershell. Just like the 'clear' used in terminal, it clears the all variables you've assigned values for.

Fabrizio
- 7,603
- 6
- 44
- 104