Hello! Please tell me what the error is:
punctum='!?.' for a in range(len(words)): #этот цикл должен брать слово а в массиве words, проверять, #есть ли в слове перед ним (b) на конце точка,вопр.или # воскл. знак, и, если он там есть, удалить слово а b=words[a+1] if words[a][-1] in punctum: del words[b] it is necessary that in the array ['words', 'words.', 'words', 'words'] the words are deleted: (
словоА словоБ. словоВ словоГсловоА словоБ. словоВ словоГ- you need to delete WordV and WordG (because after deleting, WordV will have WordB before wordB. (with a dot.) So? (Ie, do all words after a word with?!.