Python Rocks!

Remco Gerlich scarblac-spamtrap at pino.selwerd.cx
Tue Jan 18 08:06:53 EST 2000


tye4 wrote in comp.lang.python:
> I'm a python newbie.. but I like Python better than Perl (no ugly @$#@.. in
> syntax).
> 
> Python does have one quirk: no end if or end loops
> 
> if x == 10:
>     print 'x is 10'
> print 'Hello world'
> 
> # easy to get confused whether this line is in 'if' block or not

If you have problems with that, try indenting it more, and/or use
blank lines. The following looks rather clear to me:

if x == 10:
      print 'x is 10'
	 
print 'Hello world'

And of course, get used to it. It's pretty easy to do.

if-whitespace-isn't-enough-use-more-whitespace-ly-yrs, etc
-- 
Remco Gerlich,  scarblac at pino.selwerd.cx
Hi! I'm a .sig virus! Join the fun and copy me into yours!



More information about the Python-list mailing list