Most elegant python program to date.

Delaney, Timothy tdelaney at avaya.com
Fri Jun 28 02:24:29 CEST 2002


> From: PoulsenL at capecon.com [mailto:PoulsenL at capecon.com]
> 
> examples of its prose.  Are there any nominations for the most elegant
> example of a python program to date.  Not sure under what 

print 'Hello, world!'

1. Does what it is designed to do.

2. No extra cruft.

3. Does not suffer any performance penalties dues to poor algorithms.

4. Does not complicate itself by attempting to optimise algorithms which
don't need to be.

Of course, this is more a reflection of the elegance of Python itself ...

public class HelloWorld
{
    public static void main (String argv[] )
    {
        System.out.println("Hello, world!");
    }
}

Tim Delaney





More information about the Python-list mailing list