Hardware Reference
In-Depth Information
Figure 2-1:
Starting IDLE.
The Raspberry Pi comes with two versions of IDLE. IDLE 3 uses Python version 3.0, which
contains more functionality and has subtle changes to parts of the language. The examples
in this chapter are written for Python 2 (that is, IDLE). If you use the examples in the topic
without changing them you'll receive errors.
You will see the IDLE window appear in interactive mode. In this mode, what you type is
interpreted as soon as you press Return, which is a great way to try out your Python code. To
see how this works, follow these steps:
1. Type the following code:
print (“Hello World”)
Computers are less forgiving of mistakes than humans, so make sure that you type the code
exactly as it appears in this and other examples in this topic.
 
Search WWH ::




Custom Search