Page 118 - TechPluse_C7_Flipbook
P. 118
You can also install the Python IDLE (Integrated Development and Learning Environment)
separately. It is a code editor which helps you to write and execute Python programs in the editor
itself. Follow the below steps to install Python IDLE:
Step 1 Open the Terminal and type the following command:
$ sudo apt-get install idle-python3.8
Step 2 Press the Enter key. When you press the Enter key, Terminal will ask you to enter the
password.
Installing Python IDLE
PROGRAMMING IN PYTHON
Python has two basic programming modes—Script Mode and Interactive Mode.
Working in Interactive Mode
Interactive Mode is a command line shell which gives immediate result for each command. In
Interactive mode, you type one command at a time. Python executes the given command and
gives the output.
Follow these steps to start Python and work in Interactive
Mode:
Step 1 Click on Show Applications button.
Step 2 Type idle in the Search box.
Step 3 Click on IDLE (using Python). The Python IDLE
window opens in the Interactive mode.
Components of Python Window Opening Python IDLE
There are two components of Python IDLE window:
✶ Menu Bar: The Menu Bar of Python IDLE window is similar to the Menu Bar of other
programs. It has various menus such as File, Edit, Shell, Debug, Options, Window and Help.
✶ Prompt: You will see a blinking cursor after the symbol (>>>) in the window. This is known
as the Prompt. The Prompt allows the user to enter commands directly into Python and
get an output instantly by pressing the Enter key.
Menu bar
Prompt
Components of IDLE
116 Premium Edition-VII

