items = ["삼성TV", "LG세탁기", "삼성폰"]
key = "삼성"
answer =[]

for i in range(len(items)):
    if key in items[i]:
        answer.append(items[i])

print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: