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 leading/trailing whitespaces if they occur.
Test 1
Test Input \(_{6}\)
how are you, abc
Expected Output R
how re you
Test 2
Test Input
hello world, def
Expected Output
hllo worl
Remove Characters Programming challenge

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!