input: Write a python function to sort a list of words alphabetically and print each word.
  assert sort_and_print(['apple', 'banana', 'cat', 'zebra']) == ['apple', 'banana', 'cat', 'zebra']
  assert sort_and_print(['dog', 'apple', 'zebra', 'banana']) == ['apple', 'banana', 'dog', 'zebra']
  assert sort_and_print(['peach', 'grape', 'apple']) == ['apple', 'grape', 'peach']
output: def sort_and_print(words):
      words.sort()
      for word in words:
          print(word)
      return words