input: Write a function to split a sentence into words and print each word.
  assert split_and_print("This is a sentence")==None
  assert split_and_print("Hello world")==None
  assert split_and_print("Write a function")==None
output: def split_and_print(sentence):
      words = sentence.split()
      for word in words:
          print(word)