Write a program that finds the frequency of occurrences of substring in given string.
Input data format
The first input line contains a string, the second one contains a substring.
Write a program that finds the frequency of occurrences of substring in given string.
Input data format
The first input line contains a string, the second one contains a substring.
Sample Input 1:
hello there
theSample Output 1:
1Sample Input 2:
hello yellow jello
llSample Output 2:
3Create a free account to access the full topic