Python Rocks!

TechSpood ScrewMe at mypad.com
Tue Jan 18 19:28:48 EST 2000


I agree totally with that...I am a newbie too, and I since I am used to
basic I am used to seeing an end of loop block and indention being
optional....but oh well
"tye4" <tye4 at yahoo.com> wrote in message
news:860ftk$bas at news.or.intel.com...
> 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