Answers for "# remove punctuation"

0

# remove punctuation

# remove punctuation
import string
string.punctuation

#!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~

my_text = "The well-known story I told at the conferences [about hypocondria] in Boston, New York, Philadelphia,...and Richmond went as follows"
remove_punc=my_text.translate(str.maketrans('', '', string.punctuation))
print(remove_punc)


#The wellknown story I told at the conferences about hypocondria in Boston New York Philadelphiaand Richmond went as follows
Posted by: Guest on March-26-2022

Code answers related to "# remove punctuation"

Python Answers by Framework

Browse Popular Code Answers by Language