How do I run a program in Python shell?
Answer
Run a py File in Python Shell
Answer
Run a py File in Python Shell
- STEP-1: Open the IDLE editor, it should be available in your All Programs (this is for windows), under Python 3.x folder.
- STEP-2: Click on the File menu option and select New File.
- STEP-3: Paste the below code in the Untitled code editor window,
- STEP-4: Now click on the File menu and select Save.