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 409f4fb commit 6f25d7fCopy full SHA for 6f25d7f
conversions/binary_to_octal.py
@@ -27,7 +27,8 @@ 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] for index, value in enumerate(bin_string)
+ bin_string[index : index + 3]
31
+ 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