python replace punctuation with space code example
Example 1: clean punctuation from string python
s.translate(str.maketrans('', '', string.punctuation))
Example 2: python3 strip punctuation from string
import string
#make translator object
translator=str.maketrans('','',string.punctuation)
string_name=string_name.translate(translator)