input: Write a function to create a dictionary with words as keys and their lengths as values.
  assert get_word_length_dict(['the', 'cat', 'in', 'the', 'hat'])=={'the': 3, 'cat': 3, 'in': 2, 'hat': 3}
  assert get_word_length_dict(['hello', 'world'])=={'hello': 5, 'world': 5}
  assert get_word_length_dict(['a', 'ab', 'abc'])=={'a': 1, 'ab': 2, 'abc': 3}
output: def get_word_length_dict(words):
      return {word: len(word) for word in words}