Question: A string is given, composed of several forbidden words separated by commas. Also a text is given, containing those words. Write a program that replaces
A string is given, composed of several "forbidden" words separated by commas. Also a text is given, containing those words. Write a program that replaces the forbidden words with asterisks. Sample text:
Microsoft announced its next generation C# compiler today. It uses advanced parser and special optimizer for the Microsoft CLR. |
Sample string containing the forbidden words: "C#,CLR,Microsoft".
Sample result:
********* announced its next generation ** compiler today. It uses advanced parser and special optimizer for the ********* ***. |
Step by Step Solution
3.41 Rating (148 Votes )
There are 3 Steps involved in it
Heres a Python program that replaces the forbidden words in a give... View full answer
Get step-by-step solutions from verified subject matter experts
