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
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
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
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
© # 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