0
guys help me pls
I ran a command on the python IDLE but I would like to clean it without opening a new IDLE. What command can I do it with?
2 Answers
+ 1
Sorry to be late,
Please give more details;
If you mean that you would like to clear interpter console, then it should be a keyboard shortcut in your IDE, or you can use a function from os module:
For Windows:
>>> import os
>>>clear = lambda: os.system('cls')
>>> clear()
For linux :
>>> import os
>>> clear = lambda: os.system('clear')
>>> clear()
0
Ok thanks