From the text you need to isolate all the words and add to the list without punctuation.

Example: We have the following text: 'From the city to the cottage half an hour drive. I kept looking around, but I couldn’t see anything suspicious and soon calmed down. Then I saw a miracle. '

There should be a list of words ['From', 'cities', 'to' ...]]

2 answers 2

import string text = 'От города до дачи полчаса езды ... Затем я увидела чудо.' words = text.translate({ord(c): None for c in string.punctuation}).split() 

    Solution through regular expressions:

     import re text = 'От города до дачи полчаса езды. Я то и дело поглядывала по сторонам, но ничего подозрительного узреть не смогла и вскоре успокоилась. Затем я увидела чудо.' words = re.findall('\w+', text) print(words) # ['От', 'города', 'до', 'дачи', 'полчаса', 'езды', ...