Question: Please help me out. The program is written through code HS and it is in python language. 5 points Status: Not Submitted Write a function
Please help me out. The program is written through code HS and it is in python language.

5 points Status: Not Submitted Write a function called count_occurrences that takes two strings. The second string should only be one character long. The function should return how many times the second string occurs in the first string. You will need: A function declaration for the function count_occurrences, with parameters. A for loop. An if statement. A return statement Ask the user to input both strings (first the word, and then the letter). Then enter the two strings as parameters to your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
