I have a list of sentence and i have some element of this list which contains only "." (the element : ".")
Here the list :
['SECURITY TERMS.', 'This Exhibit C to between ', '.']
I would like to remove all the dot elements from the list .
My expected result is :
['SECURITY TERMS.', 'This Exhibit C to between ']
For this I try like this :
def remove_tabulation_item(sent_text):
x='.'
for i in range(len(sent_text) - 1, -1, -1):
if x in sent_text[i]:
del sent_text[i]
return sent_text
But the problem whith this code is that is delete all the element which cotains not only "."
Can you help me please?