A Program to Print Hello World

As a beginner, you will start by learning how to print ‘Hello, World!  in Python using the print method. This is a simple program that will help us to print ‘Hello, World! on the screen of our computers and it is often used to introduce a new language to beginners in the programming world.

Example: Print “Hello, World!” using print Method:

# A program to print Hello, world!
print('Hello, World!')

Output

Hello, World!

In the program above, we printed the Hello, world! as our first practice in this course using the python built-in function known as the print method.

Note that the print function is python’s default function for executing commands on the console. You can use this function to print strings on the console and strings are enclosed in single, double or triple quotation marks.

Do you want to become an expert programmer? See books helping our students, interns, and beginners in software companies today (Click here)!

Leave a Comment

Python Tutorials