In this program, we will take a string as input and count occurrences of word in a string.
Steps to solve the program
- Take a string as input.
- Count the occurrences of a specified word in a string using count().
- Print the output.
Output :
Online Learning Platform