Question: Please use python and show test cases. and show test cases. 8.0 4. Function Two countLetter Specification The second function you will write should be

Please use python and show test cases. Please use python and show test cases. and show test cases. 8.0and show test cases.

8.0 4. Function Two countLetter Specification The second function you will write should be called 'countLetter'. Your function should take two (2) arguments. The first will be a string. The second will be a single character. The function should return one (1) integer: the number of times the character occurs in the string. Hint: remember your string methods (see our book pp. 142-147) Testing: Create your own test cases. Think about what the edge cases are (e.g., what if the character is not in the string?)

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 Databases Questions!