def remove_puncts(input_str):
    ' Remove punctuations from an input string '
    return input_str.translate(str.maketrans('', '', string.punctuation))
Remove punctuations from an input string
def remove_puncts(input_str):
    '  '
    return input_str.translate(str.maketrans(, , string.punctuation))