Programa de Python que toma 2 palabras como entrada del usuario e imprime una lista que contiene las letras que las 2 palabras tienen en común
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