python script open with editor from terminal code example Example: run python file using python code exec(open('file.py').read())