how to append to a list twice?
Dave Hansen
iddw at hotmail.com
Fri Apr 21 16:06:35 EDT 2006
On 21 Apr 2006 12:50:38 -0700 in comp.lang.python,
callmebill at gmail.com 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?
Integer division truncates. 200/2 -> 100, 199/2 -> 99, 198/2 -> 99,
etc. Regards,
-=Dave
--
Change is inevitable, progress is not.
More information about the Python-list
mailing list