run python 2.7 from command line windows code example Example: python how to run terminal command #By Uku Loskit import os os.system("ls -l")