0

os.system('cls') doesn't work. It just simply puts a square box at end of output

Utkrisht
  • 316
  • 1
  • 8

1 Answers1

0

If you check the documentation of os.system function, it says, execute the command in a subshell.

def system(*args, **kwargs): # real signature unknown
    """ Execute the command in a subshell. """
    pass

That means, your main console is receiving the output of cls command run in subconsole ada

gsb22
  • 2,112
  • 2
  • 10
  • 25