Learn to write a code that prints hello world to the console using the print method.

print ('Hello World')

The code above will give an output:

Hello World

In this program, the function print() is called to show the text in the quotes that is, ‘Hello World’ to the console.

In this code ‘Hello World’ is the argument passed through the print method.

Method can be identified easily with the two parenthesis () at the end of the method name.

Please follow and like us:

Leave a Reply