Cody Bable

Generation

generate functionWed, 19 Apr 2023

remove punctuations from a sentence and split the sentence into a list

import string def remove_punct(s): return s.translate(string.punctuation) remove_punct("This is a sentence.")

Questions about programming?Chat with your personal AI assistant