×

Python Tutorial

Python Basics

Python I/O

Python Operators

Python Conditions & Controls

Python Functions

Python Strings

Python Modules

Python Lists

Python OOPs

Python Arrays

Python Dictionary

Python Sets

Python Tuples

Python Exception Handling

Python NumPy

Python Pandas

Python File Handling

Python WebSocket

Python GUI Programming

Python Image Processing

Python Miscellaneous

Python Practice

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.

Python Program to Print Hello World

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 »

Advertisement
Advertisement

Related Programs

Comments and Discussions!

Load comments ↻


Advertisement
Advertisement
Advertisement

Copyright © 2025 www.includehelp.com. All rights reserved.