how to clear the terminal in Python interpreter in interactive (REPL) mode code example Example: python clear console import sys, os os.system('cls')