you have to write a function which takes in the parameter text (which is a string). And returns a list containing sublist. each sublist contains the sentence in the text. sentences are separated using "." , "?", or "!"
example
if text is "hello, how are you? i am fine thank you. what a lovely day!"
the result should be [["hello", "how", "are", "you"],
["i", "am", "fine", "thank", "you"],["what", "a", "lovely", "day"]]
all text will be entered in as lowercase
example
if text is "hello, how are you? i am fine thank you. what a lovely day!"
the result should be [["hello", "how", "are", "you"],
["i", "am", "fine", "thank", "you"],["what", "a", "lovely", "day"]]
all text will be entered in as lowercase
Comment