Python program to print Hello World

In this example, we will learn about the first step of Python programming, i.e. printing “Hello World” on the screen. Before continuing with the hello world program, please do visit our beginner tutorial for getting started with Python.

  1. Introduction to Python programming language
  2. Getting Started with Python

You can display Hello World in two ways in Python.

Interactive Mode

Go to terminal and type python and hit enter

Now type the following code:-

print("Hello World")

You will get the output as below:-


Scripting Mode

Open your favorite text editor and save the file as with the code

print("Hello World")

Now go to the terminal, switch to the directory where you saved the file and type


You should get a similar output as above.

SHARE Python program to print Hello World

You may also like...

Leave a Reply

Your email address will not be published.