Python Program to Print Hello World

schedule
2022-05-26 | 05:41h
update
2022-07-13 | 16:41h
person
Pankaj Bhadwal
domain
TechStrot
Python Program to Print Hello World

This is a Python code example that will show you how you can print “Hello World” in PythonAMP. Also, the same method is applicable for any string that you want to print out in Python.

Table of Contents

ToggleAMP

Print() Function

To print the string “Hello World”, we will make use of the print() function that is available by default in Python.

Advertisement

Here is the Python program to output the “Hello World” string in the console:

# A simple program to print Hello World in Python print ("Hello World")

Output:

Hello World

In a similar fashion, you can output any string in Python by using the print() function.

Example:

print ("Hi There! My name is John.")

Output:

Hi There! My name is John.

Takeaway

In this Python example, we printed the string “Hello World” by using the print() function in a Python program. Also, the same can be used to print any string within a Python program.

Advertisement

Imprint
Responsible for the content:
www.techstrot.com
Privacy & Terms of Use:
www.techstrot.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
28.10.2025 - 22:20:56
Privacy-Data & cookie usage: