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
37e33918e8
commit
25921bd37c
@ -7,6 +7,7 @@ https://en.wikipedia.org/wiki/Binary_number
|
|||||||
https://en.wikipedia.org/wiki/Octal
|
https://en.wikipedia.org/wiki/Octal
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def octal_to_binary(octal_number: str) -> str:
|
def octal_to_binary(octal_number: str) -> str:
|
||||||
"""
|
"""
|
||||||
Convert an Octal number to Binary.
|
Convert an Octal number to Binary.
|
||||||
@ -49,4 +50,5 @@ def octal_to_binary(octal_number: str) -> str:
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user