mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
refactor: Indent ... for visual purposes (#7744)
This commit is contained in:

committed by
GitHub

parent
e8915097c4
commit
9bba42eca8
@ -18,12 +18,12 @@ def sylvester(number: int) -> int:
|
||||
|
||||
>>> sylvester(-1)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: The input value of [n=-1] has to be > 0
|
||||
|
||||
>>> sylvester(8.0)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
AssertionError: The input value of [n=8.0] is not an integer
|
||||
"""
|
||||
assert isinstance(number, int), f"The input value of [n={number}] is not an integer"
|
||||
|
Reference in New Issue
Block a user