Вот, пожалуйста:
def removeNumbers(data):
result = []
for sent in data:
temp = []
words = sent.split()
for word in words:
try:
number = int(word)
break
except:
temp.append(word)
result.append(" ".join(temp))
return result
data = [
'quick brown 580 650 040 050',
'quick brown 650 160 150 500',
'quick gray 075 060 400',
'quick gray 087 565 600',
'quick gray johnson 149 135',
'quick gray johnson 600 650 070 600',
'quick gray 565 070 250',
'quick gray 630 550 400',
'doggie 256',
'doggie python',
'doggie python 350 675 106',
'doggie python 417 560',
'tree 196 106'
]
data = removeNumbers(data)
print(list(set(data)))