Write a program that extracts from a text all sentences that contain a particular word . We
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that extracts from a text all sentences that contain a particular word. We accept that the sentences are separated from each other by the character "." and the words are separated from one another by a character which is not a letter. Sample text:
We are living in a yellow submarine. We don't have anything else. Inside the submarine is very tight. So we are drinking all the day. We will move out of it in 5 days. |
Sample result:
We are living in a yellow submarine. We will move out of it in 5 days. |
Related Book For
Posted Date: