clear command window python code example Example: clear window python console import os clear = lambda: os.system('cls')