input: Write a function to sort a list of strings based on their length. The function should take a list of strings as input and return the sorted list. If the input list is empty, the function should return an empty list.
  assert sort_words_by_length(["Hello", "World!", "Good", "Morning"])==['Good', 'Hello', 'World!', 'Morning']
  assert sort_words_by_length(["Hi", "Bye", "Hello"])==['Hi', 'Bye', 'Hello']
  assert sort_words_by_length([])==[]
output: def sort_words_by_length(words):
      return sorted(words, key=len)