0

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)

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
skarr610
  • 1
  • 2
  • Did you take indentation in account when you pasted your program? Python needs a correct indentation! – PeCosta Nov 15 '15 at 01:29
  • 1
    I believe there is a button on IDLE that says "RUN." It will run your program. –  Nov 15 '15 at 01:52

1 Answers1

1

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?

Community
  • 1
  • 1
jfs
  • 399,953
  • 195
  • 994
  • 1,670