How do I run a .PY file in Python idle?
Answer
2 Answers
Answer
2 Answers
- Run IDLE.
- Click File, New Window.
- Enter your script in the “Untitled” window.
- In the “Untitled” window, select Run, Run Module (or press F5) to run your script.
- A dialog “Source Must Be Saved.
- In the Save As dialog:
- The “Python Shell” window will display the output of your script.