mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
b944eec224
commit
6e742ab167
@ -83,6 +83,9 @@ def octal_to_binary(octal: str) -> str:
|
|||||||
if negative:
|
if negative:
|
||||||
return "-0b" + "".join(str(e) for e in binary)
|
return "-0b" + "".join(str(e) for e in binary)
|
||||||
return "0b" + "".join(str(e) for e in binary)
|
return "0b" + "".join(str(e) for e in binary)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from doctest import testmod
|
from doctest import testmod
|
||||||
|
|
||||||
testmod()
|
testmod()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user