Re: [perl-python] 20050114 if statement

2005-01-15 Thread Reinhold Birkenfeld
Xah Lee wrote: > . # here's an example of if statement in python. > . > . x=-1 > . if x<0: > . print 'neg' > . elif x==0: > . print 'zero' > . elif x==1: > . print 'one' > . else: > . print 'other' > . > . # the elif can be omitted. > . -- > . # here'

[perl-python] 20050114 if statement

2005-01-14 Thread Xah Lee
. # here's an example of if statement in python. . . x=-1 . if x<0: . print 'neg' . elif x==0: . print 'zero' . elif x==1: . print 'one' . else: . print 'other' . . # the elif can be omitted. . -- . # here's an example of if statement in perl . . $x=3