3. Deleting characters from a string Write a function def removeAllOccurrences(str, ch): that removes all occurrences of
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
3. Deleting characters from a string Write a function def removeAllOccurrences(str, ch): that removes all occurrences of
3. Deleting characters from a string Write a function def removeAllOccurrences(str, ch): that removes all occurrences of the character ch from the string str. www For example, your method should return the values shown: remove AllOccurrences("This is a test", 't') returns "This is a es" wwwwwww www remove AllOccurrences("Summer is here!", 'e') returns "Summr is hr" '-') returns "0" removeAllOccurrences("---0---",
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!