Python1 Min Read LetuscrackonJune 11, 2024 Matching Word – Replace ? The program must accept two string values P and S as input. The string P represents a pattern. The string S…