Hardware Reference
In-Depth Information
FIGURE 5-4
he Python 3 IDLE text editor and menu
5.
Click File
➜
Save to save the ile, and then run your small program by clicking
Run
➜
Run Module. Your list is printed to the screen, as shown in Figure 5-5.
FIGURE 5-5
Creating an inventory list in Python and using the
print()
function
to display its contents