Sha256: 549f47d73f443673916cab69fbd7ebb72e367f71f9ce3a36c94d2bea28f0acca

Contents?: true

Size: 99 Bytes

Versions: 396

Compression:

Stored size: 99 Bytes

Contents

def hamming_distance(strand1, strand2):
    return sum(x != y for (x, y) in zip(strand1, strand2))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.179 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.178 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.177 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.176 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.175 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.174 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.173 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.172 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.171 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.170 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.169 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.167 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.166 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.165 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.164 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.163 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.162 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.161 tracks/python/exercises/point-mutations/example.py
trackler-2.2.1.160 tracks/python/exercises/point-mutations/example.py