Hardware Reference
In-Depth Information
environment (IDE) such as IDLE, which provides Python-speciic functionality that's missing
from a standard text editor, including syntax checking, debugging facilities and the ability to run
your program without having to leave the editor. his chapter gives you instructions on how to
create Python iles using IDLE, but of course, the IDE program that you choose to use for pro-
gramming is up to you. he chapter also includes instructions for running your created iles
directly from the terminal, which can be used in conjunction with any text editor or other IDE.
To begin the Hello World project, open IDLE from the Programming menu in the Debian
distribution's desktop environment. If you're not using IDLE, create a blank document in
your favourite text editor and skip the rest of this paragraph. By default, IDLE opens up in
Python shell mode (see Figure 11-1), so anything you type in the initial window will be imme-
diately executed. To open a new Python project which can be executed later, click on the File
menu and choose New Window to open a blank ile.
Figure 11-1:
he IDLE
Python Shell
window
Choosing IDLE 3 from the Programming menu instead of IDLE loads the Python 3.0 version.
This includes features not available in the version of Python used by IDLE, but none of those
features are used in this chapter. You can safely load either version, and these examples will
still work.
TIP
 
Search WWH ::




Custom Search