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