Remove all punctuation from a string

word = word.translate(str.maketrans('','',string.punctuation))

Posted @ 2019-03-10 15:51