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!')
Output
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.