Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

# 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
 
PREVIOUS NEXT
Tagged: #remove #punctuation
ADD COMMENT
Topic
Name
2+6 =