input: Write a python function to get the lengths of words in a list.
  assert get_word_lengths(["apple", "banana", "cherry"]) == [5, 6, 6]
  assert get_word_lengths(["hi", "hello", "hey"]) == [2, 5, 3]
  assert get_word_lengths(["a", "ab", "abc"]) == [1, 2, 3]
output: def get_word_lengths(words):
      return [len(word) for word in words]