Factorial of a number - 2

Question

Find the factorial (n!) of a number n.

Solution

import operator
print reduce(operator.mul, xrange(1,10))
Run this
Comments by Disqus