The hamming distance of two equal-length strings is the number of positions, in which the two string differ. In other words, the number of character substitutions required to transform one string into the other. 

For this first Kata, you will write a function ```hamming_distance(a, b)``` with two equal-length strings containing only 0s and 1s as parameters. There is no need to test the parameters for validity (but you can, if you want).The function's output should be the hamming distance of the two strings as an integer.

Example:

```python
hamming_distance('100101', '101001') == 2
hamming_distance('1010', '0101') == 4
```

Difficulty: EASY
Starter code: def hamming_distance(a, b):
	

Solutions:
def hamming_distance(a, b):
	return sum((c != d for (c, d) in zip(a, b)))


def hamming_distance(a, b):
	return sum((ch1 != ch2 for (ch1, ch2) in zip(a, b)))


def hamming_distance(a, b):
	result = 0
	for i in range(len(a)):
		if a[i] != b[i]:
			result += 1
	return result


def hamming_distance(a, b):
	return sum((x != y for (x, y) in zip(a, b)))


hamming_distance = lambda a, b: sum((1 for (x, y) in zip(a, b) if x != y))


hamming_distance = lambda r, s: len([i for i in range(len(r)) if r[i] != s[i]])


def hamming_distance(a, b):
	return sum((ca != cb for (ca, cb) in zip(a, b)))


def hamming_distance(a, b):
	return sum((b1 != b2 for (b1, b2) in zip(a, b)))


def hamming_distance(a, b):
	return sum((abs(int(a[i]) - int(b[i])) for i in range(0, len(a))))