Page 46 - Beginning Programming with Pyth - John Paul Mueller
P. 46
FIGURE 2-10: Python supports math directly as part of the interactive environment.
It’s time to end your IDLE session. Type quit( ) and press Enter. IDLE may display a message such as the one shown in Figure 2-11. Well, you never intended to kill anything, but you will now. Click OK, and the session dies.
FIGURE 2-11: IDLE seems to get a little dramatic about ending a session!
Notice that the quit() command has parentheses after it, just as the print() command does. All commands have parentheses like these two. That’s how you know they’re commands. However, you don’t need to tell the quit() command anything, so you simply leave the area between the parentheses blank.