Skip to content

Commit 6f25d7f

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 409f4fb commit 6f25d7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conversions/binary_to_octal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ 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] for index, value in enumerate(bin_string)
30+
bin_string[index : index + 3]
31+
for index, value in enumerate(bin_string)
3132
if index % 3 == 0
3233
]
3334
for bin_group in bin_string_in_3_list:

0 commit comments

Comments
 (0)