Archive
Posts Tagged ‘main’
Template
September 21, 2010
1 comment
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.
