Ian Kelly <ian.g.ke...@gmail.com> writes:
>>>> sum(int(c) for c in str(math.factorial(100)))

Doh!  Using int(c) didn't occur to me and I didn't know about
math.factorial.  Notice also that WJ hasn't yet dared posting his crap
on comp.lang.haskell.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to