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