Exactly, because it's OS-dependent. It executes the in-built operating system command, which is available only in DOS/Windows. That's why it's better to use the multiple newlines thing.
print('\n'*25) ;) Seriously, you can use os.system('cls') for windows or os.system('clear') fo Linux, but printing newlines is always guaranteed to work without importing any modules.
os.system('cls') doesn't work for me :(
remember to import os ^^
@Markus i did import os. it doesn't either way
if u open cmd and type cls in it, does it clear?
@Markus it does
weird... it does absolutely nothin? errors?
@Markus cls clears in cmd while in python program, it doesn't work at all. it is bizzare
hmm really weird