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

16th Nov 2022, 11:28 AM
non
3 Réponses
16th Nov 2022, 12:02 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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")
16th Nov 2022, 12:36 PM
Giannis
Giannis - avatar
+ 1
thank you guys
17th Nov 2022, 4:22 AM
non