python remove a work if it is made of punctuation only code example Example: clean punctuation from string python s.translate(str.maketrans('', '', string.punctuation))