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)

2
  • Did you take indentation in account when you pasted your program? Python needs a correct indentation! Commented Nov 15, 2015 at 1:29
  • 1
    I believe there is a button on IDLE that says "RUN." It will run your program. Commented Nov 15, 2015 at 1:52

1 Answer 1

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?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.