Sunday, July 31, 2011

Python Hello World 2

bala@bala-laptop:~/python$ which python
/usr/bin/python
bala@bala-laptop:~/python$ python helloworld.py
Hello World
bala@bala-laptop:~/python$ ls
helloworld.py
bala@bala-laptop:~/python$ chmod u+x helloworld.py
bala@bala-laptop:~/python$ ./helloworld.py
Hello World
bala@bala-laptop:~/python$ cat helloworld.py
#! /usr/bin/python
# Author: Balasubramaniam Natarajan
# Purpose: Basic helloworld script

print "Hello World"

# End
bala@bala-laptop:~/python$

No comments:

Post a Comment