Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 01d5856

Browse files
authoredSep 18, 2021
Fix typos in Project Euler problem 034 solution 1 (TheAlgorithms#4748)
* Fix comment * Fix output
1 parent cecf43d commit 01d5856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎project_euler/problem_034/sol1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def sum_of_digit_factorial(n: int) -> int:
1313
"""
14-
Returns the sum of the digits in n
14+
Returns the sum of the factorial of digits in n
1515
>>> sum_of_digit_factorial(15)
1616
121
1717
>>> sum_of_digit_factorial(0)
@@ -33,4 +33,4 @@ def solution() -> int:
3333

3434

3535
if __name__ == "__main__":
36-
print(f"{solution()} = ")
36+
print(f"{solution() = }")

0 commit comments

Comments
 (0)
Please sign in to comment.