Home »
Python »
Python Programs
Python Program to Print Hello World
By IncludeHelp Last updated : February 12, 2024
Problem statement
Write a Python program to print Hello World on the screen.
Printing Hello World - Writing Your First Program in Python
To print Hello World in Python, use the print() method and pass Hello World within the single quotes ('') or double quotes ("") as its parameter. The print() method accepts values or variables and prints them on the screen.
Syntax
Here is the syntax to print Hello World in Python:
Python Code to Print Hello World
The below program prints Hello World on the screen.
# Python first code to print
# Hello World on the screen
print("Hello World")
Output
The output of the above program is:
Hello World
To understand the above code, you should have the basic knowledge of the following Python topics:
Python Basic Programs »