input: Write a python function to split a string into words and print each word on a new line.
  assert split_and_print_words("Hello World this is a Test") == ["Hello", "World", "this", "is", "a", "Test"]
  assert split_and_print_words("Python is fun") == ["Python", "is", "fun"]
  assert split_and_print_words("Split me into words") == ["Split", "me", "into", "words"]
output: def split_and_print_words(s):
      words = s.split()
      for word in words:
          print(word)
      return words