Page 95 - Touchcode_C6_Flipbook
P. 95
INTRODUCTION TO PYTHON
PYTHON
Python is a popular high-level programming language. It is a powerful language used for
general-purpose programming. Python was developed by Guido van Rossum. He started
applying Python in 1989. Python is extensively used to develop:
games websites
Graphical User Interface programs web applications
INSTALLING PYTHON
Follow these steps to download and install the Python software:
Step 1: Open the website http://www.python.org/downloads.
Step 2: Click on the Download Python 3.12.1 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.exe 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—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, 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. Opening Python
Introduction to Python 93

