Page 41 -
P. 41
open the shell
Create a new program file
When you first start IDLE, it displays a window called the Python Shell.
Select the New Window option from the Python Shell File menu,
which creates a new edit window for you. Input your program code as text
into this edit window and you’ll be on your way.
This is IDLE's
Python Shell.
This is an IDLE
edit window.
The New Window menu option
creates an edit window.
The Python program is color-
coded within IDLE's edit
window. This color-coding
is referred to as “syntax
highlighting." Be sure to enter
the code in EXACTLY as it
appears here. Don't forget
those “:” characters.
Do this!
This is how IDLE looks on our computer. Things
might look a little different on yours. Don't
Go ahead and open a new IDLE edit worry: the IDLE menu system and IDLE's
behavior should be the same, regardless of which
window and type in the code from page 3.
operating system you're using.
6 Chapter 1