mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Fix typos in Project Euler problem 034 solution 1 (#4748)
* Fix comment * Fix output
This commit is contained in:
parent
cecf43d648
commit
01d58562cc
@ -11,7 +11,7 @@ from math import factorial
|
|||||||
|
|
||||||
def sum_of_digit_factorial(n: int) -> int:
|
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)
|
>>> sum_of_digit_factorial(15)
|
||||||
121
|
121
|
||||||
>>> sum_of_digit_factorial(0)
|
>>> sum_of_digit_factorial(0)
|
||||||
@ -33,4 +33,4 @@ def solution() -> int:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(f"{solution()} = ")
|
print(f"{solution() = }")
|
||||||
|
Loading…
Reference in New Issue
Block a user