Project Euler 20.

Paul Rubin no.email at nospam.invalid
Sun Sep 24 18:35:58 EDT 2017


"Robert L." <No_spamming at noWhere_7073.org> writes:
>> Find the sum of the digits in the number 100!
> In Python?

So you have come to plague us here too.

>>> sum(ord(c)-ord('0') for c in str(reduce(lambda a,b: a*b, range(1,101),1)))
648



More information about the Python-list mailing list