In this program, we will take a string as input and remove unwanted characters from a given string.
Steps to remove the program
- Take a string as input.
- Create a list of unwanted characters.
- Using for loop check whether each character from the string belongs in the list of unwanted characters.
- If yes then remove the unwanted character.
- Print the output.
Output :