how to clear screen in python shell import os os.system('cls') # for Windows os.system('clear') # for Linux/OS X