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?

9th Jan 2021, 5:23 PM
Simone
Simone - avatar
2 Antworten
+ 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()
21st Jan 2021, 4:30 PM
Hisham YUM 🇲🇦
Hisham YUM 🇲🇦 - avatar
0
Ok thanks
21st Jan 2021, 4:33 PM
Simone
Simone - avatar