On Mon, May 2, 2011 at 4:28 PM, Chris Angelico <ros...@gmail.com> wrote: > reduce(`*,range(1,n+1)) > reduce(`*,xrange(1,n+1))
Whoops, forgot which language I was using. Back-tick functions not being available, these need to be: reduce(operator.mul,range(1,n+1)) reduce(operator.mul,xrange(1,n+1)) Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list