This is a basic Python hello world program that will simply print “Hello World” in the output console.
To get familiar with the fundamentals of Python programming, go through our series of Python programming tutorials.
## To print Hello World
print ("Hello World")
Output
Hello World
Explanation of the program
The first line is:
## To print Hello World
Anything followed by ##
is taken as a comment in Python. ##
is used for single line comments.
The second line is:
print ("Hello World")
This is the simplicity of python, writing code as if we are writing plain English. This will print Hello World in output console.