configure python3.9 to run python files code example Example: run python file using python code exec(open('file.py').read())