You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this question, the user enters a string and a substring and you have to print the number of times that substring occurs in that string. String traversal will take place from left to right, not from right to left.
NOTE : Letters of string are case-sensitive.
Input Format
Two strings each in a new line.
Constraints
1 <= len(string) <= 200
each character in the string is an ascii character.
Output Format
An integer number indicating the total number of occurrences of that string.