[Tutor] Pep 8, about indentation
alan.gauld at btinternet.com
Thu Aug 6 03:24:49 CEST 2015
On 06/08/15 00:31, D Wyatt wrote:
> I clearly remember that the standard for Python was to use 2 spaces
Nope, unless it was a local convention in your place of work.
But the standard for indentation has always(*) been 3 or 4 and fro PEP 8
its 4. And thats pretty standard in any language because its the size of
indent that gives best clarity to the code. (Based on tests of students
reading code samples.)
(*) "Always" since the mid 1980s at least. Certainly
before the advent of Python.
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:
More information about the Tutor