Python Program To Print Hello World!

Python Program To Print Hello World!

This is very first program of every newbie in the programming field. It means how to show/display the string on the monitor. So let’s get started with the hello world program.

Method-01

print("Hello, World!")

Output:

Hello, World!

 

Method-02

import sys library of python.

import sys
sys.stdout.write("Hello, World!")

Output:

Hello, World!

 

Method-03

Using Asic Values(It is an advanced method).

list01 = [72,101,108,108,111,127,44,87,111,114,108,100,33]
string = ""
for i in list01:
    string = string + chr(i)
 
print (str(string))

Output:

Hello, World!

Leave a comment