Check if a Python list item contains a string inside another string according to this question and in first answer, instead of a string , I want to loop in list
I have tried this but it didn't work
matching = [s for s in fd if [s for s in chht] in fd]
for more declare
I have list 1=["he","bell","go"] list=["o","e"]
so the actual output is :
words has o letter are ["go"]
words has e letter are ["he","bell"]