input: Write a python function to print the length of each word in a list.
  assert print_word_lengths(['dog', 'cat', 'spring', 'summer']) == [3, 3, 6, 6]
  assert print_word_lengths(['hello', 'world', 'python', 'code']) == [5, 5, 6, 4]
  assert print_word_lengths(['apple', 'banana', 'cherry']) == [5, 6, 6]
output: def print_word_lengths(words):
      return [len(word) for word in words]