Created
August 20, 2012 22:43
-
-
Save captainsafia/3408748 to your computer and use it in GitHub Desktop.
Solution to Project Euler Problem 20 in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from math import factorial | |
| num=factorial(100) | |
| num_list=[int(x) for x in list(str(num))] | |
| print sum(num_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment