Re: [perl-python] 20050115, for statement

2005-01-16 Thread Peter Hansen
Jeremy Bowers wrote: (Hell, five days into Python and some people are already producing working Backgammon games (I think that was the post last week), and Xah Lee here is still on for loops! Woo! Go Xah!) Mah Jongg, actually (if we're thinking of the same post), which name is often applied in the

Re: [perl-python] 20050115, for statement

2005-01-15 Thread Jeremy Bowers
On Sat, 15 Jan 2005 10:54:28 +, Michael Hoffman wrote: > Xah Lee wrote: > >> Â a = range(1,51) >> Â for x in a: >> Â if x % 2 == 0: >> Â print x, 'even' > > Now he's mixing tabs and spaces. Hideous. > > Are you doing things wrong on purpose? I think the most exciting thing is the br

Re: 20050115, for statement

2005-01-15 Thread BrainDead
Steve Holden wrote: > Michael Hoffman wrote: > > > Xah Lee wrote: > > > >> © a = range(1,51) > >> © for x in a: > >> © if x % 2 == 0: > >> © print x, 'even' > > > > > > Now he's mixing tabs and spaces. Hideous. > > > > Are you doing things wrong on purpose? > > Actually Xah is to be comme

Re: [perl-python] 20050115, for statement

2005-01-15 Thread Steve Holden
Michael Hoffman wrote: Xah Lee wrote: © a = range(1,51) © for x in a: © if x % 2 == 0: © print x, 'even' Now he's mixing tabs and spaces. Hideous. Are you doing things wrong on purpose? Actually Xah is to be commended, since he's united the Perl and Python camps. Both agree he's a nuisan

[perl-python] 20050115, for statement

2005-01-15 Thread Xah Lee
© # this is an example of for statement © # the % symbol calculates the remainder © # of division. © # the range(m,n) function © # gives a list from m to n-1. © © a = range(1,51) © for x in a: © if x % 2 == 0: © print x, 'even' © © # note that in this example, for goes over a list. © # e