input: Write a function to sort the given list of words in alphabetical order and print the sorted list. The function should take a list of words as input and return the sorted list.
  
  def sort_words(words):
      # sort the list of words in alphabetical order
      words.sort()
  
      # return the sorted list of words
      return words
  
  assert sort_words(['bubble', 'selection', 'quicksort', 'insertion']) == ['bubble', 'insertion', 'quicksort', 'selection']
  assert sort_words(['apple', 'banana', 'cherry']) == ['apple', 'banana', 'cherry']
  assert sort_words(['zebra', 'elephant', 'monkey']) == ['elephant', 'monkey', 'zebra']
  assert sort_words(['mango', 'banana', 'apple']) == ['apple', 'banana', 'mango']
  assert sort_words([]) == []
output: def sort_words(words):
      words.sort()
      return words