Answer:
Explanation:
The following code is written in Python. It takes in a story as a parameter and splits it into sentences. Then it adds those sentences into the list of lists called hamsplits, cleaned up and in lowercase. A test case is used in the picture below and called so that it shows an output of the sentence in the second element of the hamsplits list.
def Brainly(story):
story_split = re.split('[.?!]', story.lower())
hamsplits = []
for sentence in story_split:
hamsplits.append(sentence.split(' '))
for list in hamsplits:
for word in list:
if word == '':
list.remove(word)