We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 140d8c9 commit 0a87aa2Copy full SHA for 0a87aa2
bit_manipulation/hamming_code_generator.py
@@ -38,9 +38,9 @@ def hamming_15_11(number: str) -> str:
38
"Input must be an 11-bit binary string containing only '0's and '1's."
39
40
"""
41
- is_bin = True #assuming its binary initially, will set it to false if found not later on
+ is_bin = True # assuming its binary initially, will set it to false if found not later on
42
for i in number:
43
- if (i != "0" and i != "1"):
+ if i != "0" and i != "1":
44
is_bin = False
45
break
46
0 commit comments