python hello world
Python programming language was developed by Guido van Rossum in 1991. It is a high-level and object oriented programming language, mostly used as scripting language. Besides scripting uses, python code can be packaged into standalone executable programs. Its source code files are often with the extension “.py”.
hello.py
[code language=”python”]
#! /usr/bin/env python
#A simple hello program.
print "Hello, World! This is my first program in python!"
print "Nothing fancy, this is just a printing statement in a python script."
[/code]
To run the hello world python program on the command line.
[code language=”shell”]
chmod +x hello.py
./hello.py
[/code]
or
[code language=”shell”]
python hello.py
[/code]
Search within Codexpedia
Search the entire web