Question: 21) using python write a function that removes all occurrences of a given letter from a string: For example: remove_letter(a, apple) will return pple. 22)
21) using python write a function that removes all occurrences of a given letter from a string: For example: remove_letter("a", "apple") will return "pple".
22) using python write a function that counts how many times a substring occurs in a string:For example: count("is", "Mississippi") will return 2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
