input: Write a function to calculate the Hamming distance between two words.
  assert calculate_hamming('karolin', 'kathrin') == 3
  assert calculate_hamming('karolin', 'kerstin') == 3
  assert calculate_hamming('1011101', '1001001') == 2
  assert calculate_hamming('2173896', '2233796') == 3
output: def calculate_hamming(word1, word2):
      if len(word1) != len(word2):
          raise ValueError("Words must be of the same length")
      return sum(c1 != c2 for c1, c2 in zip(word1, word2))