how to clear command prompt python code example Example: console clear python import os os.system('clear')