input: Write a function to sort the given list of words in alphabetical order. If the list is empty, return the empty list. The function should print the sorted list of words.
  def sort_words(words):
      if not words:
          return []
      words.sort()
      print(words)
  
  # test cases
  assert sort_words(['bubble', 'selection', 'quicksort', 'insertion'])==['bubble', 'insertion', 'quicksort', 'selection']
  assert sort_words([])==[]
output: def sort_words(words):
      if not words:
          return []
      words.sort()
      print(words)