Question: Create a python code for the given problem. Please include an interface for the user to type the input value. Problem A: Oh My Word

Create a python code for the given problem. Please include an interface for the user to type the input value.
Problem A: Oh My Word
Create a function named findWord which determines and returns the number of times a
string appears within a lengthier string.
Your function will take two parameters: the lengthy string, and the query string. It will
return an integer result greater than or equal to 0.
Sample Input #1
a = findWord("kamiangpabebegirlatwalakayo","ka")
print(a)
Sample Output #1
2
Sample Output #2
7
Sample Output #3
1
Sample Output #4
4
Sample Output #5
2
Create a python code for the given problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!