how to clear counsel inpython code example Example: clear window python console import os clear = lambda: os.system('cls')