re.sub
import re line = re.sub('[!@#$]', '', line)
Remove specific characters from a string in python
Last updated 4 years ago