The_Official_Raspberry_Pi_-_Beginner’s_Book_Vol1,_2018 (1)

(singke) #1
Chapter 5 Programming with Python 93

THE OFFICIAL RASPBERRY PI BEGINNER’S GUIDE


Introducing the Thonny Python IDE


A

B

C

D

Toolbar – Thonny’s ‘Simple Mode’
interface uses a bar of friendly icons as its
menu, allowing you to create, save, load,
and run your Python programs, as well as
test it in various ways.

Script Area – The script area is where your
Python programs are written, and is split into
a main area for your program and a small
side margin for showing line numbers.

Python Shell – The Python shell allows
you to type individual instructions which
are then run as soon as you press the
ENTER key, and also provides information
about running programs.

Variables Area – Any variables you create
in your program are displayed in the
variables area, along with their values, for
easy reference.

THONNY VERSIONS
Thonny has two interface versions: ‘Normal Mode’, and a ‘Simple Mode’ which is better for
beginners. This chapter uses Simple Mode, which is loaded by default when you open Thonny
from the Programming section of the raspberry menu.

A

B

C

D
Free download pdf