Answers for "s.translate(table, string.punctuation)"

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 "s.translate(table, string.punctuation)"

Python Answers by Framework

Browse Popular Code Answers by Language