Question: Remove Characters Programming challenge description: Write a program to remove specific characters from a string. Input: Your program should read lines of text from standard
Remove Characters
Programming challenge description:
Write a program to remove specific characters from a string.
Input:
Your program should read lines of text from standard input. Each line of input will be a string followed by a comma followed by characters that need to be scrubbed.
Output:
Print to standard output the scrubbed strings, one per line. Trim out any leadingtrailing whitespaces if they occur.
Test
Test Input
how are you, abc
Expected Output R
how re you
Test
Test Input
hello world, def
Expected Output
hllo worl
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
