indendation error

Matthew Scott netnews at goldenspud.com
Sun Dec 28 10:40:00 EST 2003


km wrote:

> kindly enlighten hwo to fix this --
> it will be great if someone can direct me to an online link regarding  the
> rules of indendation.

PEP 8 is the "Style Guide for Python Code" and is available here:

http://www.python.org/peps/pep-0008.html

Indentation and other code layout issues are addressed in the third section. 
>From personal experience, 99% of the Python code I've seen uses 4 spaces
per indent, and no TAB characters.

-- 
Matthew Scott <netnews at goldenspud.com>





More information about the Python-list mailing list