Hardware Reference
In-Depth Information
1
Create a blank file for your program by selecting New Window from the File menu, as
shown in Figure B-3.
Figure B-3:
Creating a new
file.
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 B-4.
Click OK.
Source
is an abbreviation for
source code,
which is another way of saying the program you've
entered.
NOTE
4
Type in a filename (for this example, you can just call it
Hello
), and then click Save as
shown in Figure B-5.