We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b22596c commit 409f4fbCopy full SHA for 409f4fb
conversions/bin_to_octal.py renamed to conversions/binary_to_octal.py
@@ -27,8 +27,7 @@ def bin_to_octal(bin_string: str) -> str:
27
while len(bin_string) % 3 != 0:
28
bin_string = "0" + bin_string
29
bin_string_in_3_list = [
30
- bin_string[index: index + 3]
31
- for index, value in enumerate(bin_string)
+ bin_string[index: index + 3] for index, value in enumerate(bin_string)
32
if index % 3 == 0
33
]
34
for bin_group in bin_string_in_3_list:
0 commit comments