Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bca27fc

Browse files
committedOct 8, 2024·
Merge branch 'branch1' of github.com:AyushChakraborty/TheAlgorithms into branch1
2 parents 827d9d4 + 6d5b137 commit bca27fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎bit_manipulation/hamming_code_generator.py

Lines changed: 2 additions & 2 deletions
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
41+
is_bin = True # assuming its binary initially
4242
for i in number:
43-
if (i not in ("0", "1")):
43+
if i not in ("0", "1"):
4444
is_bin = False
4545
break
4646

0 commit comments

Comments
 (0)
Please sign in to comment.