I want to paste my code from my text editor into the IDLE window, but when I do the program won't run. Is there a way to run my program without copying and pasting into the IDLE window. (I'm a complete NOOB)
- Did you take indentation in account when you pasted your program? Python needs a correct indentation!PeCosta– PeCosta2015-11-15 01:29:32 +00:00Commented Nov 15, 2015 at 1:29
- 1I believe there is a button on IDLE that says "RUN." It will run your program.user2961646– user29616462015-11-15 01:52:39 +00:00Commented Nov 15, 2015 at 1:52
Add a comment |
1 Answer
To run a Python 3 program in IDLE, from the command line:
$ python3 -m idlelib -r your_script.py For earlier Python versions, see How to start IDLE (Python editor) without using the shortcut on Windows Vista?