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

committed by
GitHub

parent
e8915097c4
commit
9bba42eca8
@ -7,7 +7,7 @@ def binary_recursive(decimal: int) -> str:
|
||||
'1001000'
|
||||
>>> binary_recursive("number")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: invalid literal for int() with base 10: 'number'
|
||||
"""
|
||||
decimal = int(decimal)
|
||||
@ -30,11 +30,11 @@ def main(number: str) -> str:
|
||||
'-0b101000'
|
||||
>>> main(40.8)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Input value is not an integer
|
||||
>>> main("forty")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Input value is not an integer
|
||||
"""
|
||||
number = str(number).strip()
|
||||
|
Reference in New Issue
Block a user