It's those little things

By Filip Salomonsson; published on May 26, 2006.

I'm a dork, I know, but one thing I like about python is how the length of the def keyword together with a four-space indent makes the function body line up perfectly with the function name:

def add_one(foo):
    """Add one to foo and return the result."""
    bar = foo + 1
    return bar

Neat.