Python Program to Print Hello world!

A simple program that displays “Hello, World!”. It's often used to illustrate the syntax of the language.

To understand this example, you should have the knowledge of following Python programming topics:

Source Code

# This program prints Hello, world!

print('Hello, world!')


Hello, world!

In this program, we have used the built-in print() function to print the string Hello, world! on our screen.

String is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes or triple quotes (''', """).