Indentation/whitespace

Dave Hansen iddw at hotmail.com
Thu Jan 12 16:29:49 CET 2006


On Thu, 12 Jan 2006 11:56:05 +0800 in comp.lang.python, Jon Perez
<jbperez808 at yahoo.com> 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.



More information about the Python-list mailing list