Suppose we want to filter a string within a program that outputs similarly to below: Input String to Filter: Transformers Input the char to replace: s Input char to insert (replace with) : * Result:...


Suppose we want to filter a string within a program that outputs similarly to below:


Input String to Filter:
Transformers

Input the char to replace:
s

Input 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) : ')



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here