Question: Write a function count_char that takes two parameters a string named my_str and character named target. The function returns an int that represents how
Write a function count_char that takes two parameters a string named my_str and character named target. The function returns an int that represents how many times the target character is found in my str.
Step by Step Solution
There are 3 Steps involved in it
Here is the Python code for the function countchar def countcharmystr target c... View full answer
Get step-by-step solutions from verified subject matter experts
