On Thu, 12 Jan 2006 11:56:05 +0800 in comp.lang.python, Jon Perez
<[EMAIL PROTECTED]> wrote:

[...]
>
>Although the below does work, I believe:

Verified example:

>>> def check_indent(n):
        if n==4:
            print "You like four spaces"
        elif n==3:
           print "I like three"
        elif n==2:
          print "Others like two"
        else:
                print "But don't mix TABs and spaces!"

                
>>> for n in range(4,0,-1):
        check_indent(n)

        
You like four spaces
I like three
Others like two
But don't mix TABs and spaces!
>>> 

Regards,
                                        -=Dave

-- 
Change is inevitable, progress is not.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to