Skip to content

Commit b05081a

Browse files
cclaussgithub-actions
and
github-actions
authored
Update and rename bin_to_octal.py to binary_to_octal.py (TheAlgorithms#2449)
* Update and rename bin_to_octal.py to binary_to_octal.py * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent b22596c commit b05081a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +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]
30+
bin_string[index : index + 3]
3131
for index, value in enumerate(bin_string)
3232
if index % 3 == 0
3333
]

0 commit comments

Comments
 (0)