On Fri, Nov 19, 2010 at 04:18:10PM -0800, Nimret Sandhu wrote:
> You can use 1, 2, 3, 4, etc spaces or tabs BUT you have to 
> remember to use the same scheme throughout your code ( file or session). 2 or 
> 4 spaces work pretty well and it's good to be consisten.

I agree it's good to be consistant, but you can use different
indentations in different blocks. For example:

if (value % 2) == 1:
  print "case",
  print "1"
elif (value  % 3) == 2:
    print "case",
    print "2"
else:
   print "other",
   print "case"

-- 
Randolph Bentson
[email protected]

Reply via email to