Hello World sample:
print 'Hello World from Python'
Hello World to a file
fh = open('hello.txt', 'w') print >>fh, 'Hello World from Python' fh.close()