wordA = "Listen"
wordB = "Silent"

wordA = wordA.lower()
wordB = wordB.lower()

arr = []

for i in wordA:
    arr += i

answer = True

for j in range(len(arr)):
    if wordB[j] not in arr:
        answer = False
        print(answer)
        break

print(answer)

Embed on website

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