word1= "welcome" word2="home" r=[] for x in word1: if x in word2: r.append(x) print(r[2]+r[1]+r[2])
Apprenez de maniĂšre plus efficace, gratuitement :
Introduction Ă Python
7.1M apprenants
Introduction Ă Java
4.7M apprenants
Introduction Ă C
1.5M apprenants
Introduction Ă HTML
7.5M apprenants