Answers for "python3 remove punctuation from string"

1

python3 strip punctuation from string

import string
#make translator object
translator=str.maketrans('','',string.punctuation)
string_name=string_name.translate(translator)
Posted by: Guest on May-19-2020

Code answers related to "python3 remove punctuation from string"

Python Answers by Framework

Browse Popular Code Answers by Language