I would love to check if the letters from a text appear in another text in the same order.
text \"Ce\"
name \"Arsenic\"
Answer False
for x in te
One way to do it would be to avoid iterating through each letter of the word.
if any(text in name for text in text_collection):
print(text)
This would check the whole string of text against a string in name. This is assuming that text_collection has more than one entry. Otherwise just use if any(text in name): See the official documentation of any here.