Page 11 - tp_Modula_v2.0
P. 11
Menu bar
prompt.py
File Edit Format Run Options Window Help
Python 3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v.1940
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>|
Prompt
Components of IDLE
Type the commands at the prompt and you will immediately get the results. Simply, type 3 + 3 and
press the Enter key. The result 6 appears on the screen. Try more values and see what happens.
command.py
File Edit Format Run Options Window Help
3+3
6
8-4
4
6*5
30
6/2
3.0
Typing commands
Script Mode
The Interactive Mode does not save the commands entered by the user in the form of a program.
The Script Mode saves the commands entered by the user in the form of a program. To understand
the working of Script Mode, we have divided the process into four parts. Let us discuss these.
Creating a New File
Follow these steps to create a new file:
Step 1: Open the Python IDLE window.
Step 2: Click on the File menu. A drop-down menu appears.
Step 3: Click on the New File option. A new editor window with a
blank file will appear on the screen.
Selecting New File option
Introduction to Python 9

