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

committed by
GitHub

parent
e8915097c4
commit
9bba42eca8
@ -12,15 +12,15 @@ def bin_to_decimal(bin_string: str) -> int:
|
||||
0
|
||||
>>> bin_to_decimal("a")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-binary value was passed to the function
|
||||
>>> bin_to_decimal("")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Empty string was passed to the function
|
||||
>>> bin_to_decimal("39")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-binary value was passed to the function
|
||||
"""
|
||||
bin_string = str(bin_string).strip()
|
||||
|
Reference in New Issue
Block a user