Remove special characters from string python using for loop

Remove special characters from string python using for loop. In the Python programming language, remove symbols from the string. In Python, this program removes punctuation from a string.In Python, it may delete unnecessary symbols from a line or paragraph to make the sentence more understandable.

entered = "%Welcome%^#%[email protected]#$%^Inlarn"
print ("String" + entered)
symbols = "[email protected]#$;:!*%)(&^~"
for char in symbols:
entered = entered.replace(char,"")
print("Output" + entered)

Output

Welcome to Inlarn