Question: Python, please! The task is to remove 'bob' and kak patterns from a string. We cannot use any regex libraries! There could be several a
Python, please!
The task is to remove 'bob' and "kak" patterns from a string. We cannot use any regex libraries! There could be several "a" in "kak" and several "o" in "bob". It should be done in one function. The function receives a string through input prompt and removes "bob" and "kak"
For example:
Input ckakheggbooob - output chegg
input cheggbob - output chegg
input chegkakg - output chegg and so on.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
