Run
x= 'banana' search = 'a' replacement = 'p' output = x.replace(search, replacement) print(f'Input string : {x}') print(f'Output string : {output}')
Output