+ 2

Clear screen in python 3.6

As I am using pycharm for python, I want a command that clear the screen properly. I tried my best by using different commands but in case of using them there is an arrow come on console and the text doesn't remove.

29th Jul 2017, 8:45 AM
Ismail Zam Zam
Ismail Zam Zam - avatar
3 ответов
+ 4
how about os.system('clear') ?
29th Jul 2017, 9:38 AM
David Ashton
David Ashton - avatar
+ 4
thanks David Ashton but It doesn't work
29th Jul 2017, 10:49 AM
Ismail Zam Zam
Ismail Zam Zam - avatar
0
is it: import os os.system('cls') #windows os.system('clear') #linux
31st Aug 2018, 12:49 AM
Kraiye
Kraiye - avatar