0
How to clear python shell ?
When after lots of commands have executed is there any option to clear all the commands and outputs on the shell window?
11 Réponses
+ 3
exit()
+ 1
quite()
0
For windows,
>>> import os
>>>os.system('cls')
Or else
>>> import os
>>>os.system('clear')
0
Arnesh bro thanks for the reply but
By applying these commands I got only extra 0 and 1 that's all
0
🇮🇳Vivek🇮🇳 bro that doesn't make any changes
0
Arnesh
>>>import os
>>>os.system('cls')
0
>>>import os
>>>os.system('clear')
1
>>>
This is what I got ..😓
0
Abijith . U which Python shell window you are using based on CLI or that comes with python IDE
- 1
Abijith . U check this code
https://code.sololearn.com/cq4r7Ylt0wPG/?ref=app
Remember one thing it will clear all variable including built-in variables