Answers for "translate(str.maketrans('', '', 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

Python Answers by Framework

Browse Popular Code Answers by Language