mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38: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
f1c6a65593
commit
c9e7bf6e45
@ -1,4 +1,4 @@
|
||||
def octal_to_binary(octal:str) -> str:
|
||||
def octal_to_binary(octal: str) -> str:
|
||||
"""
|
||||
Convert an octal value to its binary equivalent
|
||||
|
||||
@ -91,6 +91,8 @@ def octal_to_binary(octal:str) -> str:
|
||||
|
||||
return "0b" + "".join(str(e) for e in binary)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from doctest import testmod
|
||||
|
||||
testmod()
|
||||
|
Loading…
x
Reference in New Issue
Block a user