[EMAIL PROTECTED] wrote: > I don't get it (the Elliot solution)... How is it that the first value > is repeated once times, and the remaining values are repeated twice > times? >
Because of the way division works. The first number in the range is 200, and 200/2 is 100. The next number is 199, and 199/2 is (as division works right now) 99 (99.5 rounded). Next is 198, and that halved is also 99 (this time with no remainder). Every two sets of numbers thereafter also do the same. -- http://mail.python.org/mailman/listinfo/python-list