+ 4

Is there any way to clear screen in python?

1st May 2021, 10:52 AM
Sayan Roy
Sayan Roy - avatar
7 Answers
+ 3
Actually if you want to clear console you can write the "cls" command and press enter
1st May 2021, 2:57 PM
Shadoff - avatar
+ 3
I use on ubuntu So if you use 'clear' the terminal clears On jupiter you can delete cell or rerun it Also try ctrl + l Try geek for geeks as given in previous comment Good luck 👍
2nd May 2021, 2:59 PM
Adish Bahirat
+ 2
Sayan Roy In Python sometimes we have link the output and we want to clear the screen in the cell prompt we can clear the screen by pressing Control + l
2nd May 2021, 7:27 PM
❤️😍Prerana😍❤️ - avatar
+ 2
If you're running the code in the console-out mode in an IDE, then use this: from os import system system("cls") # Hope this helps
3rd May 2021, 5:23 AM
Calvin Thomas
Calvin Thomas - avatar
3rd May 2021, 5:04 AM
Tarun R Jain
Tarun R Jain - avatar
I used Thonny IDE, it's: "ctrl+L" for Windows "command+L" for macs
3rd May 2021, 9:35 AM
Shivankur Sharma
Shivankur Sharma - avatar