Skip to content

Commit b6f624c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 298768a commit b6f624c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

maths/numerical_analysis/proper_fractions.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def proper_fractions(denominator: int) -> list[str]:
3131

3232
if denominator < 0:
3333
raise ValueError("The Denominator Cannot be less than 0")
34-
return [f"{numerator}/{denominator}" for numerator in range(1, denominator) if gcd(numerator, denominator) == 1]
34+
return [
35+
f"{numerator}/{denominator}"
36+
for numerator in range(1, denominator)
37+
if gcd(numerator, denominator) == 1
38+
]
3539

3640

3741
if __name__ == "__main__":

0 commit comments

Comments
 (0)