How would I be able to split a word containing punctuation into 2 separate words without punctuation? For example if I have the string "half-attained", how would I make it so that I can remove the "-" as well as splitting the words into "half" and "attained".
This is what I have so far and it only removes the punctuation and puts the words together.
for n in range(0,len(test_list)):
no_punct = ""
for char in test_list[n]:
if char not in punctuations:
no_punct = no_punct + char
no_puclist.append(no_punct)