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