str.maketrans('', '', string.punctuation) ' '.join([word.translate(table) for word in sentence.split()]) code example
Example: clean punctuation from string python
s.translate(str.maketrans('', '', string.punctuation))
s.translate(str.maketrans('', '', string.punctuation))