Home > python > Template

Template

Here is the classical “Hello, World!” script in Python. It can be used as a template for writing a new script:

#!/usr/bin/env python

# DESCRIPTION:   hello world
# DATE:          2010.09.21. (yyyy.mm.dd.)

print "Hello, World!"

Tip: If you want to insert source code in your blog at WordPress.com, check out this post: Code » Posting Source Code.

Update (20110503): For a more professional template, see this post, where Guido tells us how he writes his main() functions.

Categories: python Tags: ,
  1. Mehdi's avatar
    Mehdi
    September 30, 2010 at 11:41

    Nice plugin for inserting code in wordpress pages, thanks !

  1. No trackbacks yet.

Leave a comment

Design a site like this with WordPress.com
Get started