Per the subject, I'm trying to print each sentence in a string on a new line. With the current code and output shown below, what's the syntax to return "Correct Output" shown below?
Code
sentence = 'I am sorry Dave. I cannot let you do that.'def format_sentence(sentence):sentenceSplit = sentence.split(".")for s in sentenceSplit:print s + "."
Output
I am sorry Dave.I cannot let you do that.
.
None
Correct Output
I am sorry Dave.
I cannot let you do that.