Is there some way in Python3 to remove several unwanted characters from a string, a way that is more efficient that removing each character one-by-one in a for-loop?
def RemovePunc( string ):
punc = '\'";:.>,</?+=-_)(*&^%$#@!\`~'
s = string
for c in punc:
s = s.replace(c,'')
return s