Page 10 - tp_Modula_v2.0
P. 10
Dynamically typed language: Python is a dynamically typed language. This means that
you do not need to declare the type of variables in advance. For example, if you write a = 15,
you do not need to specify the variable a as an integer or string.
INSTALLING PYTHON
Follow these steps to download and install the Python software:
Step 1: Open the website https://www.python.org/downloads/release/python-3128/.
Step 2: Click on the Download Python 3.12 button.
Step 3: Double-click on the downloaded software. You can either look at the bottom of the
screen or locate the software in the Downloads folder of your computer. The Security
Warning dialog box appears.
Step 4: Click on Run button. The Python Setup window appears.
Step 5: Select the Add Python 3.12 to PATH checkbox.
Step 6: Click on Install Now button.
After a few seconds, Python will be successfully installed on your computer.
PROGRAMMING IN PYTHON
Python has two basic programming modes— Interactive Mode and Script Mode.
Interactive Mode
Interactive Mode is a command line shell which gives immediate result for
each command. In Interactive mode, we 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 Start button.
Step 2: Scroll down the list of programs and click on Python 3.12 folder.
Step 3: Click on IDLE (Python GUI). Opening Python
The main IDLE window appears. IDLE stands for Integrated Development and Learning Environment.
It is a code editor which helps you to write and execute Python programs in the editor itself.
Components of Python IDLE Window
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.
8 Touchpad MODULAR (Version 2.0)

