Hardware Reference
In-Depth Information
To start IDLE, click the menu in the bottom-left corner of the screen (where the Start
button is in Microsoft Windows), choose Programming, and then click IDLE, as shown in
Figure B-1.
Figure B-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 appendix are written for Python 2 (that is, IDLE). If you use the examples in the topic
without changing them you'll receive errors.
TIP
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:
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.
NOTE
 
Search WWH ::




Custom Search