Skip to content

Commit 0a87aa2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 140d8c9 commit 0a87aa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bit_manipulation/hamming_code_generator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def hamming_15_11(number: str) -> str:
3838
"Input must be an 11-bit binary string containing only '0's and '1's."
3939
4040
"""
41-
is_bin = True #assuming its binary initially, will set it to false if found not later on
41+
is_bin = True # assuming its binary initially, will set it to false if found not later on
4242
for i in number:
43-
if (i != "0" and i != "1"):
43+
if i != "0" and i != "1":
4444
is_bin = False
4545
break
4646

0 commit comments

Comments
 (0)