Entering Your First Python Commands
When you start IDLE, a window opens with text at the top that looks something like Figure 12-1.
This is the Python shell, and the three arrows are your prompt, which means Python is ready for you to enter a command. You can test this by entering the
license() command, which shows you a history of Python before displaying the terms and conditions of using it. If you don’t want to get bogged down in legalese, abort by pressing q and then pressing Enter when prompted.
One of the most basic commands in any programming language is the one that tells the computer to put some text on the screen. In Python (and some other languages too), this command is
>>> print “hello”
Whatever you type in the quotes after the
Copyright © 2001-2012 Python Software Foundation; All Rights Reserved
Figure 12-1: The Python shell, just after it opens.