From 2e91bcf5bd9b3a46e17bbb2a525a1f8220f58313 Mon Sep 17 00:00:00 2001 From: Tianyi Zheng Date: Sun, 20 Aug 2023 05:36:17 -0700 Subject: [PATCH] Apply suggestions from code review --- conversions/octal_to_binary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conversions/octal_to_binary.py b/conversions/octal_to_binary.py index b70642856..84e1e85f3 100644 --- a/conversions/octal_to_binary.py +++ b/conversions/octal_to_binary.py @@ -11,6 +11,7 @@ https://en.wikipedia.org/wiki/Octal def octal_to_binary(octal_number: str) -> str: """ Convert an Octal number to Binary. + >>> octal_to_binary("17") '001111' >>> octal_to_binary("7") @@ -19,7 +20,6 @@ def octal_to_binary(octal_number: str) -> str: Traceback (most recent call last): ... ValueError: Non-octal value was passed to the function - >>> octal_to_binary("@#") Traceback (most recent call last): ...