How do I run a python script from within the IDLE interactive shell?
The following throws an error:
>>> python helloworld.py SyntaxError: i
In Python 3, there is no execFile. One can use exec built-in function, for instance:
execFile
import helloworld exec('helloworld')