The first Python program – Hello World
With Python installed, let’s write our first Python program from the command line window and try it out.
A line of code is entered in the window
print("Hello World!"), as shown in Figure 1.
Figure 1: Entering Python code
The meaning of this line of code is to
"Hello World!"print a line of words to the screen. Because here, we only introduce what the code looks like, so you don’t need to pay too much attention to the meaning of specific statements.
When the enter key is pressed. You can see that “Hello World!” is displayed on the screen, as shown in Figure 2.
Figure 2: Press Enter.
Keep it simple! One of our programs does just that.