indendation question

Sean 'Shaleh' Perry shaleh at speakeasy.net
Sat Dec 27 10:53:43 EST 2003


On Thursday 25 December 2003 19:32, km wrote:
> Hi all,
>
> What is the standard and recommended way of indendation one should get to
> use in python programming ? is it a tab or 2 spaces or 4 spaces ? i am
> confused. kindly enlighten
>
> thanks,
> KM

Well the "official" standard can be seen in the python files distributed with 
python -- 4 spaces.

That said, Python will use any whitespace you want as long as you are 
consistent.  3 spaces, a tab, whatever.






More information about the Python-list mailing list