how to clear console output in python with syntax code example Example: console clear python import os os.system('clear')