clear console python terminal code example Example: python clear console import sys, os os.system('cls')