Is there any way to clear screen in python? | Sololearn: Learn to code for FREE!

+4

Is there any way to clear screen in python?

5/1/2021 10:52:09 AM

Sayan Roy

8 Answers

New Answer

+6

https://www.geeksforgeeks.org/clear-screen-python/

+3

Actually if you want to clear console you can write the "cls" command and press enter

+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 👍

+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

+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

+1

ctrl+l

0

0

I used Thonny IDE, it's: "ctrl+L" for Windows "command+L" for macs