Python Rocks!

tye4 tye4 at yahoo.com
Mon Jan 17 20:32:02 EST 2000


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
Having an 'end' block would help tremendously.

if x == 10:
    print 'x is 10'
end if
print 'Hello World'

or
for x in range(1, 10):
    print x,
end loop

Indentation is a confusing and lame way to separate what is inside a block
and what's outside it.

tye4





More information about the Python-list mailing list