Python indentation

Peter Hansen peter at engcorp.com
Fri Jul 9 14:19:10 EDT 2004


Josef Meile wrote:

> I also agree. I love the fact that you can't produce bad indented code 
> in python

Well, if you try hard enough, you can still get pretty brutal:

a = 5

if a == 6: print '6'
else:
    if a == 7:
     print '7'
    \
  elif a \
        == 8:
        print '8'
    else:
                print 'none of the above'


;-)

-Peter



More information about the Python-list mailing list