Display Hello World

Displaying Hello World on the screen is the first program that is to be introduce to the beginner while learning any programming language

Hello World Code

#Display Hello World
print('Hello World!')


Hello World!

In the above program, first line starts with # symbol which indicates it is the comment. Comments are not executed by PVM or python compiler. The first line in the program is the single line comment. Comments help us to understand the reason for writing the code. In simple words, it describes the use of code.

Second line includes print() function which is a built in function to display output on screen. When the above program is run, print() function will display Hello World! on the screen.

“Hello World!” is a string which can be enclosed in single or double quotes. String is a collection of characters.


Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s