0
clearing the output
are there any codes in python that can clear the output on the console? print("hello world") output: hello world #like a code for clearing this output
3 Answers
+ 3
https://www.scaler.com/topics/how-to-clear-screen-in-JUMP_LINK__&&__python__&&__JUMP_LINK/
Maybe it's helpful to you
+ 3
your question is OS based.
Clearing console window can be different depending on the OS you running your application.
you can use os.system function to run a command.
For windows OS is os.system("cls")
+ 1
thank you guys