# Automatically Resize Command Line Window using python import os os.system('mode con: cols=100 lines=40') input("Press any key to continue...") #for Python 3