Page 10 - Modular v1.1 Pyhton
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-279/.
Step 2: Click on the Download Python 2.7.9 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 2.7 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 2.7.9
folder. Opening Python
Step 3: Click on IDLE (Python GUI).
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.
8 Touchpad MODULAR (Version 1.0)

