Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update sol1.py
  • Loading branch information
Kush1101 authored Aug 13, 2020
commit 5e92188c96bff8c8ce2cf433c8278bb6e1114bc7
6 changes: 3 additions & 3 deletions project_euler/problem_34/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def factorial(n: int) -> int:
Traceback (most recent call last):
...
ValueError: n must be >= 0

>>> factorial(1.1)
Traceback (most recent call last):
...
Expand All @@ -45,7 +45,7 @@ def factorial(n: int) -> int:


def sum_of_digit_factorial(n: int) -> int:
"""
"""
Returns the sum of the digits in n
>>> sum_of_digit_factorial(15)
121
Expand All @@ -59,7 +59,7 @@ def sum_of_digit_factorial(n: int) -> int:

def compute() -> int:
"""
Returns the sum of all numbers whose
Returns the sum of all numbers whose
sum of the factorials of all digits
add up to the number itself.
>>> compute()
Expand Down