Page 106 - TCS ICT Book 8
P. 106
The City School 2021-2022
5.4. Python Basics
Python is a high-level programming language designed
to be easy to read and simple to implement. It is open-
source, which means it is free to use, even for commercial
applications. Python can run on Mac, Windows, and UNIX
systems. Running Python Using IDLE- The IDLE interpreter
is a sort of “sandbox” where you can work with Python
interactively without having to write whole scripts to
see what they do. The name IDLE stands for Integrated
Development Environment.
You can find IDLE in the taskbar under the label of programming. Follow the steps to
run your first program:
1. Click on the Raspberry Pi icon in the
taskbar and then go to programming and
hit Python 3 (IDLE).
2. Let’s start with the first program that
prints “Hello World” message on the
screen.
3. Write print (“hello world”) on IDLE
and hit enter.
Running Python as a Script on IDLE
A script or scripting language is a feature
of computer language with a series of Checkpoint
commands within a file that is capable of
being executed. Scripts are just the piece of The Raspberry Pi, which is a single
board computer (SBC), is a small credit
code, in which the code is written in the form card sized computing device that can
be used for a variety of purposes.
of scripts and get executed. Error checking is GPIO stands for General Purpose
done when the code is executed or run. Input/Ouput pins.
106

