Python program to print hello world

Learn to print Hello World in Python 3.

Python program to print hello world

The below code prints Hello World.

Code

print("Hello World")

Output

Hello World

We have used the print() built-in function to print the string Hello World on our screen.

In Python, a string is a sequence of characters. Strings can be enclosed inside single quotes, double quotes, or triple quotes.

Diving deeper into Python print
Learn to print relevant messages to various outputs using Python. Examples for both Python 2 and Python 3 are provided.

Subscribe to Pylenin

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe