clear screen command in python shell code example Example: python interpreter clear screen import os # Windows os.system('cls') # Linux os.system('clear')