Jun-15-2019, 06:41 PM
Hi,
side note:
Except this, both ways execute a command outside Python, so whatever the result is, it has nothing to do with Python. So to see what "clear" and "cls" do e.g. on Windows, you may want to consult the Windows documentation for both commands.
Regards, noisefloor
side note:
os.system(whatever)
is outdated and should not be used anymore. That's also clearly stated in the official Python documentation. Use the subprocess
module instead.Except this, both ways execute a command outside Python, so whatever the result is, it has nothing to do with Python. So to see what "clear" and "cls" do e.g. on Windows, you may want to consult the Windows documentation for both commands.
Regards, noisefloor