Professional Documents
Culture Documents
Write A Hello World Python Program: Create Helloworld - Py Program As Shown Below
Write A Hello World Python Program: Create Helloworld - Py Program As Shown Below
$ vim helloworld.py
#!/usr/bin/python
$ whereis python
/usr/share/python /usr/share/man/man1/python.1.gz
$ which python
/usr/bin/python
$ python helloworld.py
Hello World!
( or )
$ ./helloworld.py
Hello World!
Note: As python is an interpreted language, you dont have the compilation step similar to
the C program.