str.maketrans(' ', ' ', string.punctuation) code example
Example: python3 strip punctuation from string
import string
#make translator object
translator=str.maketrans('','',string.punctuation)
string_name=string_name.translate(translator)
import string
#make translator object
translator=str.maketrans('','',string.punctuation)
string_name=string_name.translate(translator)