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.")

Want to kickstart your project?Use the new AI Studio to create your code