Given a text (paragraph) and a word whose occurrence to be found in the text/paragraph, we have to find the how many times word is repeated in the text.
Example:
Input:
text = "this is a book, this is very popular"
word = "this"
Output:
'this' found 2 times.
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer