How do I run a .PY file in Python idle?

Linh Chi

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

Tìm kiếm

Back
Top