Programme Python qui prend 2 mots comme entrée de l'utilisateur et imprime une liste contenant les lettres que les 2 mots ont en commun
firstWord = input("Enter the First word: ").lower()
secondWord = input("Enter the Second word: ").lower()
print("----------------------")
hehe = []
for i in firstWord:
for j in secondWord:
if i == j:
hehe.append(j)
print(hehe)
print("----------------------")
Awmrit