input: Write a python function to sort the words in a sentence by their lengths.
  assert sort_words_by_length("He had seen too many terrible things") == ['He', 'had', 'too', 'many', 'seen', 'things', 'terrible']
  assert sort_words_by_length("I love programming") == ['I', 'love', 'programming']
  assert sort_words_by_length("Python is awesome") == ['is', 'Python', 'awesome']
output: def sort_words_by_length(sentence):
      words = sentence.split()
      sorted_words = sorted(words, key=len)
      return sorted_words