How do I run a python script from within the IDLE interactive shell?
The following throws an error:
>>> python helloworld.py SyntaxError: i
you can do it by two ways
import file_name
exec(open('file_name').read())
but make sure that file should be stored where your program is running