import string words = ["hell'o", "Hi,", "bye bye", "good bye", ""] words = [''.join(letter for letter in word if letter not in string.punctuation) for word in words if word] print(words)