Skip to content

Commit a46940e

Browse files
authored
Update proper_fractions.py
1 parent f4147ad commit a46940e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

maths/numerical_analysis/proper_fractions.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ def proper_fractions(denominator: int) -> list[str]:
1313
['1/5', '2/5', '3/5', '4/5']
1414
>>> proper_fractions(-15)
1515
Traceback (most recent call last):
16+
...
1617
ValueError: The Denominator Cannot be less than 0
1718
>>> proper_fractions(0)
1819
[]
1920
>>> proper_fractions(1.2)
2021
Traceback (most recent call last):
21-
ValueError: The Denominator has to be an integer
22+
...
23+
ValueError: The Denominator must be an integer
2224
"""
2325

2426
if denominator < 0:

0 commit comments

Comments
 (0)