Skip to content

Commit 1298784

Browse files
committed
Completed the hamming challenge
1 parent 439711f commit 1298784

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
557 Bytes
Binary file not shown.

hamming/hamming.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
def distance(strand_a, strand_b):
2-
32
if (len(strand_a) == len(strand_b)):
43
return sum ( strand_a[i] != strand_b[i] for i in range(len(strand_a)) )
54
else:
6-
self.exception = r".+"
7-
8-
pass
5+
print("Something went wrong with these: ", strand_a, strand_b)
6+
raise ValueError("Something went wrong with these: ", strand_a, strand_b)

0 commit comments

Comments
 (0)