2
To run a Python script, you need to be at the Windows command prompt, so just type the following:
python meuPrograma.py
Or if you want to run the script in IDLE interactively, you will have to use a function for this.
Running IDLE script with function execfile:
execfile('meuPrograma.py')
This way you can run script in IDLE.
It seems to me that you are in the command mode of the Python interpreter, the Python Shell. To run a program in Python, you need to type
python meuPrograma.py
at the command prompt.– gato