how to clear anything you've printed python code example Example: console clear python import os os.system('clear')