num = 100 summ = sum([int(x) for x in str(num)])
>>> summ
1
>>> from math import factorial as fact >>> >>> sum(map(int, str(fact(10)))) 27 >>> sum(map(int, str(fact(100)))) 648 >>>
>>> print sum(map(int, str(reduce(lambda x, y: x*y, range(1, 11))))) 27 >>> print sum(map(int, str(reduce(lambda x, y: x*y, range(1, 101))))) 648