input: Write a python function to split a given sentence into words and print each word on a new line.
  assert split_and_print_words("The quick brown fox") == ["The", "quick", "brown", "fox"]
  assert split_and_print_words("Hello world") == ["Hello", "world"]
  assert split_and_print_words("Python is fun") == ["Python", "is", "fun"]
output: def split_and_print_words(sentence):
      words = sentence.split()
      for word in words:
          print(word)
      return words