replace punctuation with underscore python code example Example: clean punctuation from string python Click to copys.translate(str.maketrans('', '', string.punctuation))