mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-01 00:41:09 +00:00
another sol for problem_20
This commit is contained in:
parent
744803ad64
commit
b6b7784b1b
5
Project Euler/Problem 20/sol2.py
Normal file
5
Project Euler/Problem 20/sol2.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
from math import factorial
|
||||||
|
def main():
|
||||||
|
print(sum([int(x) for x in str(factorial(100))]))
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user