import string s = "А роза упала на лапу Азора" cs = list(filter( lambda x: x not in string.punctuation + string.whitespace, s)) print(cs) import re print(re.findall(r'[^\W_]', s))