Suppose we want to filter a string within a program that outputs similarly to below:
Input String to Filter:TransformersInput the char to replace:sInput char to insert (replace with) :*Result: Tran*former*
Write Python code that prints out the characters in stringstr, only with characterold_ch replaced with characternew_ch, using the following starter code.
str = input('Input String to Filter: ')old_ch = input('Intput the char to replace: ')new_ch = input('Input the char to insert (replace with) : ')
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here