Skip to content

Commit 7692d03

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

maths/special_numbers/kaprekar_number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def is_kaprekar_number(n: int) -> bool:
1919
>>> is_kaprekar_number(10)
2020
False
2121
"""
22-
square = str(n ** 2)
22+
square = str(n**2)
2323
for i in range(1, len(square)):
2424
left, right = square[:i], square[i:]
2525
if int(right) == 0:
@@ -31,5 +31,5 @@ def is_kaprekar_number(n: int) -> bool:
3131

3232
if __name__ == "__main__":
3333
import doctest
34-
34+
3535
doctest.testmod()

0 commit comments

Comments
 (0)