Skip to content

Commit a083f42

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7b99ad1 commit a083f42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bit_manipulation/binary_coded_decimal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def binary_coded_decimal(number: int) -> str:
1818
>>> binary_coded_decimal(987)
1919
'0b100110000111'
2020
"""
21-
return "0b" + "".join(str(bin(int(digit)))[2:].zfill(4) for digit in str(max(0, number)))
21+
return "0b" + "".join(
22+
str(bin(int(digit)))[2:].zfill(4) for digit in str(max(0, number))
23+
)
2224

2325

2426
if __name__ == "__main__":

0 commit comments

Comments
 (0)