ahhh .. I wasn't aware of that.

On Friday, November 19, 2010 04:31:03 pm Randolph Bentson wrote:
> 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"

-- 
Nimret Sandhu
http://www.nimret.com
http://www.nimsoft.biz

Reply via email to