replace

PythonF

Replace Border with String

The program must accept a character matrix of size RxC and a string S as the input. The program must replace the characters in the border of…