Skip to content

Commit 409f4fb

Browse files
authored
Update and rename bin_to_octal.py to binary_to_octal.py
1 parent b22596c commit 409f4fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

conversions/bin_to_octal.py renamed to conversions/binary_to_octal.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ def bin_to_octal(bin_string: str) -> str:
2727
while len(bin_string) % 3 != 0:
2828
bin_string = "0" + bin_string
2929
bin_string_in_3_list = [
30-
bin_string[index: index + 3]
31-
for index, value in enumerate(bin_string)
30+
bin_string[index: index + 3] for index, value in enumerate(bin_string)
3231
if index % 3 == 0
3332
]
3433
for bin_group in bin_string_in_3_list:

0 commit comments

Comments
 (0)