clear python console of printed things code example Example: console clear python import os os.system('clear')