A Credit Acceptance application receives a sentence that must be processed as an ordered array of words. Write a function that converts the sentence into a list by splitting on one or more whitespace characters.
Preserve each word's original characters and order. Do not remove or alter punctuation attached to a word. For an empty or whitespace-only sentence, return an empty list.
Implement sentence_to_words(sentence).
sentence, a string containing zero or more characters.def sentence_to_words(sentence):