Home › Python Tutorial › Hello World Python Program

Hello World Python Program

⏱ 2 min read Updated: 20 Nov 2026

Hello world program is the first step to learn the python programming language. We are making Hello World Program in different types of languages such as Java, C, C++ etc. The syntax of Python programming language has very easiest to any other language.

In this article, we will explore how to create the Hello world program in Python. To know more, read What is Python?, Python Features and History of Python.

Python Hello World Program

A simple python program looks like that.

print("Hello, World!")

Let us discuss how to make the Hello World program in different ways.

1. Using Print Function

It is the simple way to make the Hello World Program using print function.

print("Hello, World!")

Output:

Hello, World!

2. Using a Variable

In this method firstly we store the value in a variable and then using the print function to display the value.

message = "Hello, World!" 

print(message)

Output:

Hello, World!

3. Using Single Quotes

We can also define the string value in a single quotes.

print('Hello, World!')

Output:

Hello, World!

Using Triple Quotes

Python allows us to define the string value in a triple quotes. This method is used when we use the multi-line string value.

print("""Hello, World!""")

Output:

Hello, World!

Using String Concatenation

We can join the two or more string value using the string concatenation method. We use the (+) sign to join the string value.

print("Hello" + ", " + "World!")

Output:

Hello, World!

Using an f-string

Python f-strings allow us to insert variables or expressions directly into a string. We can use the f prefix before a string to create an f-string.

message = "World!" print(f"Hello, {message}")

Output:

Hello, World!

Using a function

We can also create a function to display the Hello World message. A function is a reusable code rhat performs the specific tasks.

def hello():    

print("Hello, World!") 

hello()

Output:

Hello, World!