what I would do would be:
def remove_punctuation(my_string): return my_string.translate(str.maketrans('', '', string.punctuation))