words = ['hui']
list = ['huilo']
result = [word for word in words for l in list if word in l]
print(result)
result = []
for word in words:
for l in list:
if word in l:
result.append(word)
print(result)
d29yZHMgPSBbJ2h1aSddCmxpc3QgPSBbJ2h1aWxvJ10KCnJlc3VsdCA9IFt3b3JkIGZvciB3b3JkIGluIHdvcmRzIGZvciBsIGluIGxpc3QgaWYgd29yZCBpbiBsXQpwcmludChyZXN1bHQpCgpyZXN1bHQgPSBbXQpmb3Igd29yZCBpbiB3b3JkczoKICAgIGZvciBsIGluIGxpc3Q6CiAgICAgICAgaWYgd29yZCBpbiBsOgogICAgICAgICAgICByZXN1bHQuYXBwZW5kKHdvcmQpCnByaW50KHJlc3VsdCk=