primeiro commit com exercicios de Exercism realizados até esta data

This commit is contained in:
2026-10-17 22:10:27 +01:00
commit 58fccbe27a
708 changed files with 35038 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
def distance(strand_a, strand_b):
hamming_distance: int = 0
if len(strand_a) != len(strand_b):
raise ValueError("Strands must be of equal length.")
for index in range(len(strand_a)):
if strand_a[index] != strand_b[index]:
hamming_distance += 1
return hamming_distance