Question: Python: Ask for a string to be searched and a single character ( also a string value ) . Tell how many times that single

Python: Ask for a string to be searched and a single character (also a string value). Tell how many times that single character occurs within the initial string. You CANNOT use the count method, you must use a for loop to make a decision and count the occurrences. To match, the letters must be the same case. In the example below, the character to count does not match the capital T.

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!