Hardware Reference
In-Depth Information
Saving Your Program
IDLE allows you to save your code so that you don't have to re-enter it each time you want to
run it. Just follow these steps:
1.
Create a blank ile for your program by selecting New Window from the File menu, as
shown in Figure 2-3.
Figure 2-3:
Creating a new
ile.
2.
Enter the following code and then click the Run menu and choose Run Module, or
press F5.
message = “hello world from a saved file”
print (message)
3.
Python displays a message that says, “Source Must Be Saved”, as shown in Figure 2-4.
Click OK.
Source
is an abbreviation for
source code,
which is another way of saying the program you've
entered.