Python – Hello World

 

PRINT HELLO WORLD IN PYTHON

 

Open a New Python Shell and select New File.

 

 

Write the following program in the editor.

 

Program

 

# This program prints Hello, world!

print(‘Hello, world!’)

input(“Press Enter to Exit”)

 

 

Save the file with the .py extension for Python program files.

 

 

Press F5 to Run the Module.

 

Output

 

Double-Click on the HelloWorld.py file you have saved in your directory to run it in the  Command Line.