Fix typos in Project Euler problem 034 solution 1 (#4748)

* Fix comment

* Fix output
This commit is contained in:
Maxim Smolskiy 2021-09-18 22:33:03 +03:00 committed by GitHub
parent cecf43d648
commit 01d58562cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ from math import factorial
def sum_of_digit_factorial(n: int) -> int:
"""
Returns the sum of the digits in n
Returns the sum of the factorial of digits in n
>>> sum_of_digit_factorial(15)
121
>>> sum_of_digit_factorial(0)
@ -33,4 +33,4 @@ def solution() -> int:
if __name__ == "__main__":
print(f"{solution()} = ")
print(f"{solution() = }")