On Sun, 03 Feb 2008 15:13:14 +1100, Ben Finney wrote: > "Gabriel Genellina" <[EMAIL PROTECTED]> writes: > >> Should be `for _ in xrange(n)` to match the Ruby example. Both >> iterate n times. > > Only until Python 3.0, since the 'xrange' implementation will become > 'range' at that time.
The point wasn't `range` vs. `xrange` but the arguments (1,n) vs. (n). Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list